vboot_reference: use --replace-fail with substituteInPlace

This commit is contained in:
Jared Baur
2025-09-18 10:24:59 -07:00
parent c61d94fdee
commit 3d24390579
+2 -4
View File
@@ -31,13 +31,11 @@ stdenv.mkDerivation {
postPatch = ''
substituteInPlace Makefile \
--replace "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
--replace-fail "ar qc" '${stdenv.cc.bintools.targetPrefix}ar qc'
# Drop flag unrecognized by GCC 9 (for e.g. aarch64-linux)
substituteInPlace Makefile \
--replace "-Wno-unknown-warning" ""
'';
--replace-fail "-Wno-unknown-warning" ""
preBuild = ''
patchShebangs scripts
'';