nixpkgs/pkgs/by-name/br/brillo/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
856 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }:
2019-04-14 09:53:43 +00:00
stdenv.mkDerivation rec {
pname = "brillo";
2023-01-01 04:53:27 +00:00
version = "1.4.12";
2019-04-14 09:53:43 +00:00
src = fetchFromGitLab {
owner= "cameronnemo";
repo= "brillo";
rev= "v${version}";
hash = "sha256-dKGNioWGVAFuB4kySO+QGTnstyAD0bt4/6FBVwuRxJo=";
2019-04-14 09:53:43 +00: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 09:53:43 +00:00
meta = with lib; {
2019-04-14 09:53:43 +00:00
description = "Backlight and Keyboard LED control tool";
homepage = "https://gitlab.com/cameronnemo/brillo";
2023-08-07 23:13:01 +00:00
mainProgram = "brillo";
2019-04-14 09:53:43 +00:00
license = [ licenses.gpl3 licenses.bsd0 ];
platforms = platforms.linux;
maintainers = [ maintainers.alexarice ];
};
}