major refactor and reorg
This commit is contained in:
parent
f99d2c3145
commit
4da9b4919e
11 changed files with 5 additions and 59 deletions
36
packages/mioctl.nix
Normal file
36
packages/mioctl.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, pkgs, fetchurl, lib, unzip, 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue