aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/os-specific/linux/brillo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/brillo/default.nix')
-rw-r--r--nixpkgs/pkgs/os-specific/linux/brillo/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/brillo/default.nix b/nixpkgs/pkgs/os-specific/linux/brillo/default.nix
new file mode 100644
index 00000000000..6d51907ea16
--- /dev/null
+++ b/nixpkgs/pkgs/os-specific/linux/brillo/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }:
+
+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";
+
+ meta = with stdenv.lib; {
+ description = "Backlight and Keyboard LED control tool";
+ homepage = https://gitlab.com/cameronnemo/brillo;
+ license = [ licenses.gpl3 licenses.bsd0 ];
+ platforms = platforms.linux;
+ maintainers = [ maintainers.alexarice ];
+ };
+}