We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 986433d commit 58754dcCopy full SHA for 58754dc
pkgs/by-name/br/brightnessctl/package.nix
@@ -4,6 +4,7 @@
4
fetchFromGitHub,
5
pkg-config,
6
systemd,
7
+ coreutils,
8
}:
9
10
stdenv.mkDerivation rec {
@@ -19,7 +20,10 @@ stdenv.mkDerivation rec {
19
20
21
postPatch = ''
22
substituteInPlace Makefile \
- --replace "pkg-config" "$PKG_CONFIG"
23
+ --replace-fail "pkg-config" "$PKG_CONFIG"
24
+
25
+ substituteInPlace 90-brightnessctl.rules \
26
+ --replace-fail /bin/ ${coreutils}/bin/
27
'';
28
29
makeFlags = [
@@ -28,6 +32,11 @@ stdenv.mkDerivation rec {
32
"ENABLE_SYSTEMD=1"
33
];
30
34
35
+ installTargets = [
36
+ "install"
37
+ "install_udev_rules"
38
+ ];
39
31
40
nativeBuildInputs = [ pkg-config ];
41
buildInputs = [ systemd ];
42
0 commit comments