From ce16aebad69f77f50da4da2f1a7689dd9290fba9 Mon Sep 17 00:00:00 2001 From: qbisi Date: Mon, 27 Oct 2025 09:29:47 +0800 Subject: [PATCH] superlu_dist: remove optional flags --- pkgs/by-name/su/superlu_dist/package.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/su/superlu_dist/package.nix b/pkgs/by-name/su/superlu_dist/package.nix index fc83900c2f62..87842f815848 100644 --- a/pkgs/by-name/su/superlu_dist/package.nix +++ b/pkgs/by-name/su/superlu_dist/package.nix @@ -13,9 +13,6 @@ mpiCheckPhaseHook, metis, parmetis, - withExamples ? false, - fortranSupport ? true, - enableOpenMP ? true, # Todo: ask for permission of unfree parmetis withParmetis ? false, }: @@ -49,8 +46,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake pkg-config - ] - ++ lib.optionals fortranSupport [ gfortran ]; @@ -65,17 +60,15 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.cc.isClang [ gfortran.cc.lib - ] - ++ lib.optionals (enableOpenMP && stdenv.cc.isClang) [ llvmPackages.openmp ]; cmakeFlags = [ - (lib.cmakeBool "enable_examples" withExamples) - (lib.cmakeBool "enable_openmp" enableOpenMP) + (lib.cmakeBool "enable_examples" false) + (lib.cmakeBool "enable_openmp" true) (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic) - (lib.cmakeBool "XSDK_ENABLE_Fortran" fortranSupport) + (lib.cmakeBool "XSDK_ENABLE_Fortran" true) (lib.cmakeBool "BLA_PREFER_PKGCONFIG" true) (lib.cmakeBool "TPL_ENABLE_INTERNAL_BLASLIB" false) (lib.cmakeBool "TPL_ENABLE_LAPACKLIB" true)