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:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user