diff options
author | Kranium Gikos Mendoza <kranium@gikos.net> | 2015-05-11 01:57:15 +0800 |
---|---|---|
committer | Kranium Gikos Mendoza <kranium@gikos.net> | 2015-05-11 13:23:01 +0800 |
commit | 6f634e3c3abdffdaac9405c872f683f4fcf465fe (patch) | |
tree | b35edb5bab163924777494f81a04045f4b6c00aa /pkgs/os-specific/linux/kbdlight | |
parent | e3696ed37fc18f7395d4e0a23a299977173dac09 (diff) |
Add kbdlight package and setuid wrapper
update nixos/modules/programs/kbdlight.nix to use mkEnableOption
Diffstat (limited to 'pkgs/os-specific/linux/kbdlight')
-rw-r--r-- | pkgs/os-specific/linux/kbdlight/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kbdlight/default.nix b/pkgs/os-specific/linux/kbdlight/default.nix new file mode 100644 index 0000000000000..1bc07f357a8a0 --- /dev/null +++ b/pkgs/os-specific/linux/kbdlight/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "kbdlight-${version}"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "hobarrera"; + repo = "kbdlight"; + rev = "v${version}"; + sha256 = "1f08aid1xrbl4sb5447gkip9lnvkia1c4ap0v8zih5s9w8v72bny"; + }; + + preConfigure = '' + substituteInPlace Makefile \ + --replace /usr/local $out + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/hobarrera/kbdlight; + description = "A very simple application that changes MacBooks' keyboard backlight level"; + license = licenses.isc; + maintainers = [ maintainers.womfoo ]; + platforms = platforms.linux; + }; +} |