libiconv: use --replace-fail instead of --replace

This commit is contained in:
Randy Eckenrode 2024-03-28 17:52:59 -04:00
parent 521ea079b9
commit 71a67fc4a8
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -37,12 +37,12 @@ stdenv.mkDerivation rec {
+ lib.optionalString enableDarwinABICompat ''
for iconv_h_in in iconv.h.in iconv.h.build.in; do
substituteInPlace "include/$iconv_h_in" \
--replace "#define iconv libiconv" "" \
--replace "#define iconv_close libiconv_close" "" \
--replace "#define iconv_open libiconv_open" "" \
--replace "#define iconv_open_into libiconv_open_into" "" \
--replace "#define iconvctl libiconvctl" "" \
--replace "#define iconvlist libiconvlist" ""
--replace-fail "#define iconv libiconv" "" \
--replace-fail "#define iconv_close libiconv_close" "" \
--replace-fail "#define iconv_open libiconv_open" "" \
--replace-fail "#define iconv_open_into libiconv_open_into" "" \
--replace-fail "#define iconvctl libiconvctl" "" \
--replace-fail "#define iconvlist libiconvlist" ""
done
'';