ocamlPackages.luv: clean up autotool file patching

Files named configure are already patched automatically:
97c43828fb. We only need to worry about
ltmain.sh now.

Since we no longer have to worry about the missing substitution in
configure, we can use --replace-fail instead of --replace which avoids
the deprecation warning.
This commit is contained in:
Tobiasz Laskowski
2026-04-09 15:15:51 +01:00
parent 41b6607198
commit 5d7f24d515
@@ -26,9 +26,7 @@ let
patches = lib.optional (lib.versionOlder version "0.5.14") ./incompatible-pointer-type-fix.diff;
postConfigure = ''
for f in src/c/vendor/configure/{ltmain.sh,configure}; do
substituteInPlace "$f" --replace /usr/bin/file file
done
substituteInPlace "src/c/vendor/configure/ltmain.sh" --replace-fail /usr/bin/file file
'';
nativeBuildInputs = [ file ];