587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kbdlight";
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hobarrera";
|
|
repo = "kbdlight";
|
|
rev = "v${version}";
|
|
sha256 = "1f08aid1xrbl4sb5447gkip9lnvkia1c4ap0v8zih5s9w8v72bny";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace Makefile \
|
|
--replace /usr/local $out \
|
|
--replace 4755 0755
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hobarrera/kbdlight";
|
|
description = "A very simple application that changes MacBooks' keyboard backlight level";
|
|
mainProgram = "kbdlight";
|
|
license = licenses.isc;
|
|
maintainers = [ maintainers.womfoo ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|