mirror of https://github.com/materusPL/Nixerus.git
21 lines
486 B
Nix
21 lines
486 B
Nix
{ stdenv, python3, fetchFromGitHub}:
|
|
stdenv.mkDerivation
|
|
rec {
|
|
pname = "lh2ctrl";
|
|
version = "1.1.0";
|
|
|
|
propagatedBuildInputs = [
|
|
(python3.withPackages (pythonPackages: with pythonPackages; [
|
|
bluepy
|
|
]))
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "risa2000";
|
|
repo = "lh2ctrl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-+I4NdxWbJtuEkRq4ZYuQSrSDzyzO2Rml+QJ1xthw4RE=";
|
|
};
|
|
|
|
installPhase = "install -Dm755 ${src + "/pylh2ctrl/lh2ctrl.py"} $out/bin/lh2ctrl";
|
|
} |