From 5d7f24d5155a30f7b60d88f84c31a047887f1504 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Thu, 9 Apr 2026 12:27:28 +0100 Subject: [PATCH] ocamlPackages.luv: clean up autotool file patching Files named configure are already patched automatically: 97c43828fb7e016b4ee8fe434bc4d5e0b8a8b4be. 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. --- pkgs/development/ocaml-modules/luv/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/luv/default.nix b/pkgs/development/ocaml-modules/luv/default.nix index bfa6774d0575..193edadb4b09 100644 --- a/pkgs/development/ocaml-modules/luv/default.nix +++ b/pkgs/development/ocaml-modules/luv/default.nix @@ -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 ];