nixpkgs/pkgs/os-specific/linux/kbdlight/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

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