2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }:
|
2019-04-14 10:53:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "brillo";
|
2021-12-11 14:35:26 +00:00
|
|
|
version = "1.4.10";
|
2019-04-14 10:53:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner= "cameronnemo";
|
|
|
|
repo= "brillo";
|
|
|
|
rev= "v${version}";
|
2021-12-11 14:35:26 +00:00
|
|
|
sha256 = "sha256-x8K6CMkOyR+kWRlqa/BmJogZo41LvsL1kfz6CZ5PaUI=";
|
2019-04-14 10:53:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./udev-rule.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ go-md2man ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ];
|
|
|
|
|
2019-11-09 23:52:53 +00:00
|
|
|
installTargets = [ "install-dist" ];
|
2019-04-14 10:53:43 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-14 10:53:43 +01:00
|
|
|
description = "Backlight and Keyboard LED control tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.com/cameronnemo/brillo";
|
2019-04-14 10:53:43 +01:00
|
|
|
license = [ licenses.gpl3 licenses.bsd0 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.alexarice ];
|
|
|
|
};
|
|
|
|
}
|