mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
6f634e3c3a
update nixos/modules/programs/kbdlight.nix to use mkEnableOption
26 lines
661 B
Nix
26 lines
661 B
Nix
{ 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;
|
|
};
|
|
}
|