scalapack: replace cmakeFlagsArray with cmakeFlags (#446363)

Changed files
+2 -2
pkgs
by-name
sc
scalapack
+2 -2
pkgs/by-name/sc/scalapack/package.nix
···
# this line is left so those who force installation on x86_64-darwin can still build
doCheck = !(stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin);
-
cmakeFlagsArray = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeFeature "LAPACK_LIBRARIES" "-llapack")
(lib.cmakeFeature "BLAS_LIBRARIES" "-lblas")
···
# 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"
'';
meta = {
···
# this line is left so those who force installation on x86_64-darwin can still build
doCheck = !(stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin);
+
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeFeature "LAPACK_LIBRARIES" "-llapack")
(lib.cmakeFeature "BLAS_LIBRARIES" "-lblas")
···
# 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-fail "\''${_IMPORT_PREFIX}" "$out"
'';
meta = {