Nixerus/pkgs/apps/lh2ctrl.nix

30 lines
714 B
Nix
Raw Normal View History

2024-02-25 18:53:47 +01:00
{ stdenv, python3, fetchFromGitHub, lib}:
2024-02-24 20:58:06 +01:00
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";
2024-02-25 18:53:47 +01:00
meta = with lib; {
description = "Power management of Valve v2 lighthouses over Bluetooth LE";
homepage = "https://github.com/risa2000/lh2ctrl";
license = licenses.mit;
platforms = platforms.linux;
};
}