diff options
author | Profpatsch <mail@profpatsch.de> | 2017-05-31 05:16:12 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2017-05-31 05:16:51 +0200 |
commit | bef643c5a2e9d25fea4210e4b4d58a81ee0f025f (patch) | |
tree | e1c38912899cc029e2263040451669b56ea86ea0 /pkgs/profpatsch/backlight/default.nix | |
parent | 3753365a719885f3b02aa8a61f8f37fdf7cb5849 (diff) |
pkgs/profpatsch/backlight: init
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"' + ''; + +} |