hwinfo: use --replace-fail instead of --replace

This commit is contained in:
Bob van der Linden
2024-08-21 22:38:35 +02:00
committed by Bjørn Forsman
parent 05fdea6db3
commit dd3d50001f
+7 -3
View File
@@ -30,9 +30,13 @@ stdenv.mkDerivation (finalAttrs: {
];
postPatch = ''
substituteInPlace Makefile --replace "/sbin" "/bin" --replace "/usr/" "/"
substituteInPlace src/isdn/cdb/Makefile --replace "lex isdn_cdb.lex" "flex isdn_cdb.lex"
substituteInPlace hwinfo.pc.in --replace "prefix=/usr" "prefix=$out"
substituteInPlace Makefile \
--replace-fail "/sbin" "/bin" \
--replace-fail "/usr/" "/"
substituteInPlace src/isdn/cdb/Makefile \
--replace-fail "lex isdn_cdb.lex" "flex isdn_cdb.lex"
substituteInPlace hwinfo.pc.in \
--replace-fail "prefix=/usr" "prefix=$out"
# replace absolute paths with relative, we will prefix PATH later
substituteInPlace src/hd/hd_int.h \