nixpkgs/pkgs/os-specific/linux/brillo/default.nix

35 lines
832 B
Nix
Raw Normal View History

2019-04-14 11:53:43 +02:00
{ stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }:
stdenv.mkDerivation rec {
pname = "brillo";
2019-11-25 15:08:30 +01:00
version = "1.4.9";
2019-04-14 11:53:43 +02:00
src = fetchFromGitLab {
owner= "cameronnemo";
repo= "brillo";
rev= "v${version}";
2019-11-25 15:08:30 +01:00
sha256 = "0ab7s60zcgl6hvm0a9rlwq35p25n3jnw6r9256pwl4cdwyjyybsb";
2019-04-14 11:53:43 +02:00
};
patches = [
(substituteAll {
src = ./udev-rule.patch;
inherit coreutils;
})
];
nativeBuildInputs = [ go-md2man ];
makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ];
2019-11-10 00:52:53 +01:00
installTargets = [ "install-dist" ];
2019-04-14 11:53:43 +02:00
meta = with stdenv.lib; {
description = "Backlight and Keyboard LED control tool";
homepage = "https://gitlab.com/cameronnemo/brillo";
2019-04-14 11:53:43 +02:00
license = [ licenses.gpl3 licenses.bsd0 ];
platforms = platforms.linux;
maintainers = [ maintainers.alexarice ];
};
}