flakeup and mioctl package

This commit is contained in:
Matt Nish-Lapidus 2024-12-17 10:47:55 -05:00
parent 9015132ffc
commit a4cbf82744
3 changed files with 48 additions and 11 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, pkgs, fetchurl, lib, unzip, autoPatchelfHook, makeWrapper, ... }:
stdenv.mkDerivation rec {
pname = "mioctl";
version = "latest";
src = fetchurl {
url = "https://codeberg.org/pmatilai/mioctl/archive/master.zip";
sha256 = "sha256-GFCUqao+LC9SgparV1699D72wnD0kZeroyq5DRxdJos=";
};
nativeBuildInputs = [ makeWrapper unzip ];
propagatedBuildInputs = [
(pkgs.python311.withPackages (pythonPackages: with pythonPackages; [
mido
python-rtmidi
]))
];
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out/bin
cp -r mioctl/mioctl $out/bin
'';
meta = with lib; {
homepage = "https://codeberg.org/pmatilai/mioctl";
description = "linux cli for mioXL in python";
platforms = platforms.linux;
};
}