From a5317c333836e433cb10547fe907c402ec77c77e Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Tue, 20 Aug 2024 12:35:49 +0900 Subject: [PATCH] thc-hydra: --replace -> --replace-fail --replace of substituteInPlace is deprecated --- pkgs/tools/security/thc-hydra/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/thc-hydra/default.nix b/pkgs/tools/security/thc-hydra/default.nix index fc68205299fe..aa0e9fd8fb43 100644 --- a/pkgs/tools/security/thc-hydra/default.nix +++ b/pkgs/tools/security/thc-hydra/default.nix @@ -16,11 +16,11 @@ stdenv.mkDerivation rec { makeDirs = output: subDir: lib.concatStringsSep " " (map (path: lib.getOutput output path + "/" + subDir) buildInputs); in '' substituteInPlace configure \ - --replace '$LIBDIRS' "${makeDirs "lib" "lib"}" \ - --replace '$INCDIRS' "${makeDirs "dev" "include"}" \ - --replace "/usr/include/math.h" "${lib.getDev stdenv.cc.libc}/include/math.h" \ - --replace "libcurses.so" "libncurses.so" \ - --replace "-lcurses" "-lncurses" + --replace-fail '$LIBDIRS' "${makeDirs "lib" "lib"}" \ + --replace-fail '$INCDIRS' "${makeDirs "dev" "include"}" \ + --replace-fail "/usr/include/math.h" "${lib.getDev stdenv.cc.libc}/include/math.h" \ + --replace-fail "libcurses.so" "libncurses.so" \ + --replace-fail "-lcurses" "-lncurses" ''; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-undef-prefix";