diff options
Diffstat (limited to 'pkgs/profpatsch/backlight/default.nix')
-rw-r--r-- | pkgs/profpatsch/backlight/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/profpatsch/backlight/default.nix b/pkgs/profpatsch/backlight/default.nix new file mode 100644 index 00000000..d2f40be0 --- /dev/null +++ b/pkgs/profpatsch/backlight/default.nix @@ -0,0 +1,17 @@ +{ stdenv, python3, xbacklight}: + +stdenv.mkDerivation rec { + name = "backlight"; + + src = ./backlight.py; + phases = [ "installPhase" "fixupPhase" ]; + + buildInputs = [ python3 ]; + + installPhase = '' + install -D ${src} $out/bin/backlight + substituteInPlace $out/bin/backlight \ + --replace '"xbacklight"' '"${xbacklight}/bin/xbacklight"' + ''; + +} |