about summary refs log tree commit diff
path: root/pkgs/by-name/hw
diff options
context:
space:
mode:
authorBob van der Linden2024-08-19 22:17:44 +0200
committerBjørn Forsman2024-08-21 22:38:35 +0200
commitf7193575e330d2b4fdd6b561cc094a2ffc829ca7 (patch)
treebd8aee91d65fc26ab23cdde8d56dfd904bc5be2f /pkgs/by-name/hw
parent250e30890d36934485aed1921dbdcd8abfd4f5e7 (diff)
hwinfo: replace another /usr/ with $out
Diffstat (limited to 'pkgs/by-name/hw')
-rw-r--r--pkgs/by-name/hw/hwinfo/package.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/by-name/hw/hwinfo/package.nix b/pkgs/by-name/hw/hwinfo/package.nix
index 3193d579f7f7..c0f30da26291 100644
--- a/pkgs/by-name/hw/hwinfo/package.nix
+++ b/pkgs/by-name/hw/hwinfo/package.nix
@@ -41,6 +41,8 @@ stdenv.mkDerivation (finalAttrs: {
       --replace-fail "lex isdn_cdb.lex" "flex isdn_cdb.lex"
     substituteInPlace hwinfo.pc.in \
       --replace-fail "prefix=/usr" "prefix=$out"
+    substituteInPlace src/isdn/cdb/cdb_hwdb.h \
+      --replace-fail "/usr/share" "$out/share"
 
     # replace absolute paths with relative, we will prefix PATH later
     substituteInPlace src/hd/hd_int.h \