Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 35 lines 856 B view raw
1{ lib, stdenv, fetchFromGitLab , go-md2man, coreutils, substituteAll }: 2 3stdenv.mkDerivation rec { 4 pname = "brillo"; 5 version = "1.4.12"; 6 7 src = fetchFromGitLab { 8 owner= "cameronnemo"; 9 repo= "brillo"; 10 rev= "v${version}"; 11 hash = "sha256-dKGNioWGVAFuB4kySO+QGTnstyAD0bt4/6FBVwuRxJo="; 12 }; 13 14 patches = [ 15 (substituteAll { 16 src = ./udev-rule.patch; 17 inherit coreutils; 18 }) 19 ]; 20 21 nativeBuildInputs = [ go-md2man ]; 22 23 makeFlags = [ "PREFIX=$(out)" "AADIR=$(out)/etc/apparmor.d" ]; 24 25 installTargets = [ "install-dist" ]; 26 27 meta = with lib; { 28 description = "Backlight and Keyboard LED control tool"; 29 homepage = "https://gitlab.com/cameronnemo/brillo"; 30 mainProgram = "brillo"; 31 license = [ licenses.gpl3 licenses.bsd0 ]; 32 platforms = platforms.linux; 33 maintainers = [ maintainers.alexarice ]; 34 }; 35}