2025-02-04 16:27:59 -05:00
|
|
|
{ stdenv, pkgs, fetchurl, lib, unzip, makeWrapper, ... }:
|
2024-12-17 10:47:55 -05:00
|
|
|
|
2025-03-27 21:53:32 -04:00
|
|
|
stdenv.mkDerivation {
|
2024-12-17 10:47:55 -05:00
|
|
|
pname = "mioctl";
|
|
|
|
version = "latest";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://codeberg.org/pmatilai/mioctl/archive/master.zip";
|
|
|
|
sha256 = "sha256-GFCUqao+LC9SgparV1699D72wnD0kZeroyq5DRxdJos=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper unzip ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2025-03-27 22:33:34 -04:00
|
|
|
(pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
2024-12-17 10:47:55 -05:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|