mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
709 B
Nix
29 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;
|
|
};
|
|
}
|