From abf4471761389186445db0d0dfcfc9051a20973a Mon Sep 17 00:00:00 2001 From: qbisi Date: Fri, 6 Jun 2025 03:31:26 +0800 Subject: [PATCH] mumps: allow static build --- pkgs/by-name/mu/mumps/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mu/mumps/package.nix b/pkgs/by-name/mu/mumps/package.nix index 88aa4f0f3d1c..9d613b4b057d 100644 --- a/pkgs/by-name/mu/mumps/package.nix +++ b/pkgs/by-name/mu/mumps/package.nix @@ -12,6 +12,7 @@ metis, parmetis, mpiCheckPhaseHook, + static ? stdenv.hostPlatform.isStatic, mpiSupport ? false, withParmetis ? false, # default to false due to unfree license withPtScotch ? mpiSupport, @@ -85,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: { "OPTC=-O3" "OPTL=-O3" "SCALAP=-lscalapack" - "allshared" + "${if static then "all" else "allshared"}" ]; installPhase =