Skip to content

Commit 1547499

Browse files
authored
brightnessctl: add udev rules to package (#390488)
2 parents 3d70185 + 58754dc commit 1547499

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkgs/by-name/br/brightnessctl/package.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
fetchFromGitHub,
55
pkg-config,
66
systemd,
7+
coreutils,
78
}:
89

910
stdenv.mkDerivation rec {
@@ -19,7 +20,10 @@ stdenv.mkDerivation rec {
1920

2021
postPatch = ''
2122
substituteInPlace Makefile \
22-
--replace "pkg-config" "$PKG_CONFIG"
23+
--replace-fail "pkg-config" "$PKG_CONFIG"
24+
25+
substituteInPlace 90-brightnessctl.rules \
26+
--replace-fail /bin/ ${coreutils}/bin/
2327
'';
2428

2529
makeFlags = [
@@ -28,6 +32,11 @@ stdenv.mkDerivation rec {
2832
"ENABLE_SYSTEMD=1"
2933
];
3034

35+
installTargets = [
36+
"install"
37+
"install_udev_rules"
38+
];
39+
3140
nativeBuildInputs = [ pkg-config ];
3241
buildInputs = [ systemd ];
3342

0 commit comments

Comments
 (0)