nixpkgs/pkgs/os-specific/linux/brillo/default.nix
2021-12-11 14:35:26 +00:00

35 lines
830 B
Nix

{ lib, stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }:
stdenv.mkDerivation rec {
pname = "brillo";
version = "1.4.10";
src = fetchFromGitLab {
owner= "cameronnemo";
repo= "brillo";
rev= "v${version}";
sha256 = "sha256-x8K6CMkOyR+kWRlqa/BmJogZo41LvsL1kfz6CZ5PaUI=";
};
patches = [
(substituteAll {
src = ./udev-rule.patch;
inherit coreutils;
})
];
nativeBuildInputs = [ go-md2man ];
makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ];
installTargets = [ "install-dist" ];
meta = with 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 ];
};
}