nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 55 lines 993 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 go-md2man, 6 coreutils, 7 replaceVars, 8 udevCheckHook, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "brillo"; 13 version = "1.4.13"; 14 15 src = fetchFromGitLab { 16 owner = "cameronnemo"; 17 repo = "brillo"; 18 rev = "v${version}"; 19 hash = "sha256-+BUyM3FFnsk87NFaD9FBwdLqf6wsNhX+FDB7nqhgAmM="; 20 }; 21 22 patches = [ 23 (replaceVars ./udev-rule.patch { 24 inherit coreutils; 25 # patch context 26 group = null; 27 }) 28 ]; 29 30 nativeBuildInputs = [ 31 go-md2man 32 udevCheckHook 33 ]; 34 35 makeFlags = [ 36 "PREFIX=$(out)" 37 "AADIR=$(out)/etc/apparmor.d" 38 ]; 39 40 doInstallCheck = true; 41 42 installTargets = [ "install-dist" ]; 43 44 meta = with lib; { 45 description = "Backlight and Keyboard LED control tool"; 46 homepage = "https://gitlab.com/cameronnemo/brillo"; 47 mainProgram = "brillo"; 48 license = [ 49 licenses.gpl3Only 50 licenses.bsd0 51 ]; 52 platforms = platforms.linux; 53 maintainers = [ maintainers.alexarice ]; 54 }; 55}