From e2861dce59130b356171e6b85661e636afe69d24 Mon Sep 17 00:00:00 2001 From: qbisi Date: Tue, 23 Sep 2025 15:03:39 +0800 Subject: [PATCH] scalapack: add gfortran to nativeBuildInputs --- pkgs/by-name/sc/scalapack/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sc/scalapack/package.nix b/pkgs/by-name/sc/scalapack/package.nix index 9954463fe830..4842b78f734a 100644 --- a/pkgs/by-name/sc/scalapack/package.nix +++ b/pkgs/by-name/sc/scalapack/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, fetchpatch, cmake, + gfortran, mpiCheckPhaseHook, mpi, blas, @@ -56,7 +57,10 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + gfortran + ]; nativeCheckInputs = [ mpiCheckPhaseHook ]; @@ -74,7 +78,6 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeFeature "LAPACK_LIBRARIES" "-llapack") (lib.cmakeFeature "BLAS_LIBRARIES" "-lblas") - (lib.cmakeFeature "CMAKE_Fortran_COMPILER" "${lib.getDev mpi}/bin/mpif90") (lib.cmakeFeature "CMAKE_C_FLAGS" "${lib.concatStringsSep " " [ "-Wno-implicit-function-declaration" (lib.optionalString finalAttrs.passthru.isILP64 "-DInt=long")