nixpkgs/pkgs/os-specific/linux/kbdlight/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
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/'
2024-06-09 23:07:45 +02:00

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;
};
}