From d6f0de8b5207b15921c9423db8b45029e20140cc Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 24 Feb 2024 20:58:06 +0100 Subject: [PATCH] lh2ctrl: init package --- pkgs/apps/lh2ctrl.nix | 21 +++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 22 insertions(+) create mode 100644 pkgs/apps/lh2ctrl.nix diff --git a/pkgs/apps/lh2ctrl.nix b/pkgs/apps/lh2ctrl.nix new file mode 100644 index 0000000..4c73634 --- /dev/null +++ b/pkgs/apps/lh2ctrl.nix @@ -0,0 +1,21 @@ +{ 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"; +} \ No newline at end of file diff --git a/pkgs/default.nix b/pkgs/default.nix index ef9d99e..6aee65d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -29,5 +29,6 @@ rec { libcef = callPackage ./libs/libcef.nix {}; + lh2ctrl = callPackage ./apps/lh2ctrl.nix {}; }