superlu: 5.2.1 -> 7.0.0; openmolcas: unpin Boost (#359050)

authored by

Markus Kowalewski and committed by
GitHub
cde67126 66817904

+41 -26
+2 -2
pkgs/by-name/op/openmolcas/package.nix
··· 14 libxc, 15 makeWrapper, 16 gsl, 17 - boost180, 18 autoPatchelfHook, 19 enableQcmaquis ? false, 20 # Note that the CASPT2 module is broken with MPI ··· 103 armadillo 104 libxc 105 gsl.dev 106 - boost180 107 ] 108 ++ lib.optionals enableMpi [ 109 mpi
··· 14 libxc, 15 makeWrapper, 16 gsl, 17 + boost, 18 autoPatchelfHook, 19 enableQcmaquis ? false, 20 # Note that the CASPT2 module is broken with MPI ··· 103 armadillo 104 libxc 105 gsl.dev 106 + boost 107 ] 108 ++ lib.optionals enableMpi [ 109 mpi
+39 -24
pkgs/by-name/su/superlu/package.nix
··· 1 - { lib, stdenv, fetchurl, cmake, 2 gfortran, blas, lapack}: 3 4 assert (!blas.isILP64) && (!lapack.isILP64); 5 6 - stdenv.mkDerivation rec { 7 - version = "5.2.1"; 8 pname = "superlu"; 9 10 - src = fetchurl { 11 - url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz"; 12 - sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8"; 13 }; 14 15 - nativeBuildInputs = [ cmake gfortran ]; 16 17 propagatedBuildInputs = [ blas ]; 18 19 cmakeFlags = [ 20 - "-DBUILD_SHARED_LIBS=true" 21 - "-DUSE_XSDK_DEFAULTS=true" 22 ]; 23 24 - env = lib.optionalAttrs stdenv.cc.isClang { 25 - NIX_CFLAGS_COMPILE = toString [ 26 - "-Wno-error=implicit-function-declaration" 27 - "-Wno-error=implicit-int" 28 - ]; 29 - }; 30 31 - patches = [ 32 - ./add-superlu-lib-as-dependency-for-the-unit-tests.patch 33 - ]; 34 35 - doCheck = true; 36 - checkTarget = "test"; 37 38 - meta = { 39 - homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/"; 40 - license = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt"; 41 description = "Library for the solution of large, sparse, nonsymmetric systems of linear equations"; 42 platforms = lib.platforms.unix; 43 }; 44 - }
··· 1 + { lib, stdenv, fetchFromGitHub, fetchurl, cmake, ninja, 2 gfortran, blas, lapack}: 3 4 assert (!blas.isILP64) && (!lapack.isILP64); 5 6 + stdenv.mkDerivation (finalAttrs: { 7 pname = "superlu"; 8 + version = "7.0.0"; 9 10 + src = fetchFromGitHub { 11 + owner = "xiaoyeli"; 12 + repo = "superlu"; 13 + rev = "refs/tags/v${finalAttrs.version}"; 14 + # Remove non‐free files. 15 + # 16 + # See: 17 + # * <https://github.com/xiaoyeli/superlu/issues/9> 18 + # * <https://github.com/xiaoyeli/superlu/blob/0bbd6571bd839d866bff6a8ff1eaa812a8c31463/License.txt#L32-L65> 19 + # * <https://salsa.debian.org/science-team/superlu/-/blob/0acab1b41f332f2f2e3b0b5d28ba7fc9f7539533/debian/copyright> 20 + postFetch = "rm $out/SRC/mc64ad.* $out/DOC/*.pdf"; 21 + hash = "sha256-iJiVyY+/vr6kll8FCunvZ8rKBj+w+Rnj4F696XW9xFc="; 22 }; 23 24 + patches = [ 25 + (fetchurl { 26 + url = "https://salsa.debian.org/science-team/superlu/-/raw/fae141179928d1cc5a8e381503e8b1264d297c3d/debian/patches/mc64ad-stub.patch"; 27 + hash = "sha256-QUaNUDaRghTqr6jk1TE6a7CdXABqu7xAkYZDhL/lZBQ="; 28 + }) 29 + ]; 30 + 31 + nativeBuildInputs = [ cmake ninja gfortran ]; 32 33 propagatedBuildInputs = [ blas ]; 34 35 cmakeFlags = [ 36 + (lib.cmakeBool "BUILD_SHARED_LIBS" true) 37 + (lib.cmakeBool "enable_fortran" true) 38 ]; 39 40 + doCheck = true; 41 42 + meta = { 43 + homepage = "https://portal.nersc.gov/project/sparse/superlu/"; 44 + license = [ 45 + lib.licenses.bsd3Lbnl 46 + 47 + # Xerox code; actually `Boehm-GC` variant. 48 + lib.licenses.mit 49 50 + # University of Minnesota example files. 51 + lib.licenses.gpl2Plus 52 53 + # University of Florida code; permissive COLAMD licence. 54 + lib.licenses.free 55 + ]; 56 description = "Library for the solution of large, sparse, nonsymmetric systems of linear equations"; 57 platforms = lib.platforms.unix; 58 }; 59 + })