diff --git a/pkgs/by-name/nb/nbench/package.nix b/pkgs/by-name/nb/nbench/package.nix index 1d7c5d9b5049..6327471caabb 100644 --- a/pkgs/by-name/nb/nbench/package.nix +++ b/pkgs/by-name/nb/nbench/package.nix @@ -14,11 +14,12 @@ stdenv.mkDerivation (finalAttrs: { }; prePatch = '' - substituteInPlace nbench1.h --replace '"NNET.DAT"' "\"$out/NNET.DAT\"" - substituteInPlace sysspec.h --replace "malloc.h" "stdlib.h" + substituteInPlace nbench1.h --replace-fail '"NNET.DAT"' "\"$out/NNET.DAT\"" \ + --replace-fail 'static void adjust_mid_wts();' 'static void adjust_mid_wts(int);' + substituteInPlace sysspec.h --replace-fail "malloc.h" "stdlib.h" '' + lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace Makefile --replace "-static" "" + substituteInPlace Makefile --replace-fail "-static" "" ''; buildInputs = lib.optionals stdenv.hostPlatform.isGnu [