Commit 5d7f24d5 authored by Tobiasz Laskowski's avatar Tobiasz Laskowski
Browse files

ocamlPackages.luv: clean up autotool file patching

Files named configure are already patched automatically:
97c43828. 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.
parent 41b66071
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 ];