brightnessctl: add udev rules to package
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
systemd,
|
||||
coreutils,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -19,7 +20,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace "pkg-config" "$PKG_CONFIG"
|
||||
--replace-fail "pkg-config" "$PKG_CONFIG"
|
||||
|
||||
substituteInPlace 90-brightnessctl.rules \
|
||||
--replace-fail /bin/ ${coreutils}/bin/
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
@@ -28,6 +32,11 @@ stdenv.mkDerivation rec {
|
||||
"ENABLE_SYSTEMD=1"
|
||||
];
|
||||
|
||||
installTargets = [
|
||||
"install"
|
||||
"install_udev_rules"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ systemd ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user