summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kbdlight
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2015-05-11 01:57:15 +0800
committerKranium Gikos Mendoza <kranium@gikos.net>2015-05-11 13:23:01 +0800
commit6f634e3c3abdffdaac9405c872f683f4fcf465fe (patch)
treeb35edb5bab163924777494f81a04045f4b6c00aa /pkgs/os-specific/linux/kbdlight
parente3696ed37fc18f7395d4e0a23a299977173dac09 (diff)
downloadnixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar.gz
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar.bz2
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar.lz
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar.xz
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.tar.zst
nixpkgs-6f634e3c3abdffdaac9405c872f683f4fcf465fe.zip
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.nix26
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 00000000000..1bc07f357a8
--- /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;
+  };
+}