From 01c57ded7986facc921073ddb6862a6a863a12a3 Mon Sep 17 00:00:00 2001 From: qbisi Date: Fri, 26 Sep 2025 22:24:57 +0800 Subject: [PATCH] scalapack: use --replace-fail in substituteInPlace --- pkgs/by-name/sc/scalapack/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {