diff --git a/pkgs/by-name/sc/scalapack/package.nix b/pkgs/by-name/sc/scalapack/package.nix index 4842b78f734a..f6bc19b55149 100644 --- a/pkgs/by-name/sc/scalapack/package.nix +++ b/pkgs/by-name/sc/scalapack/package.nix @@ -96,7 +96,7 @@ stdenv.mkDerivation (finalAttrs: { # cmake file will thus look for the library in the dev output instead of out. # Use the absolute path to $out instead to fix the issue. substituteInPlace $dev/lib/cmake/scalapack-${finalAttrs.version}/scalapack-targets-release.cmake \ - --replace "\''${_IMPORT_PREFIX}" "$out" + --replace-fail "\''${_IMPORT_PREFIX}" "$out" ''; meta = {