brightnessctl: also install udev rules

Fixes #44877
This commit is contained in:
Matthew Bauer 2018-08-10 13:43:07 -04:00
parent 6b1a04d788
commit 68b5f51d6f

View file

@ -11,9 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "0amxhcikcgj04z81272kz35m5h5q4jx9x7v71h8yl1rv4b2lzh7z";
};
makeFlags = "MODE=0755 PREFIX=/ DESTDIR=$(out)";
makeFlags = [ "MODE=0755" "PREFIX=" "DESTDIR=$(out)" ];
installTargets = [ "install" "install_udev_rules" ];
patchPhase = ''
postPatch = ''
substituteInPlace 90-brightnessctl.rules --replace /bin/ ${coreutils}/bin/
substituteInPlace 90-brightnessctl.rules --replace %k '*'
'';