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