mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
707 B
Nix
29 lines
707 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 = "Very simple application that changes MacBooks' keyboard backlight level";
|
|
mainProgram = "kbdlight";
|
|
license = licenses.isc;
|
|
maintainers = [ maintainers.womfoo ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|