2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchurl, cmake,
|
2020-03-31 07:47:18 -07:00
|
|
|
gfortran, blas, lapack}:
|
|
|
|
|
2020-04-20 13:50:55 -07:00
|
|
|
assert (!blas.isILP64) && (!lapack.isILP64);
|
2016-04-28 11:43:21 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "5.2.1";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "superlu";
|
2016-04-28 11:43:21 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz";
|
|
|
|
sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8";
|
|
|
|
};
|
|
|
|
|
2020-12-30 23:48:55 -08:00
|
|
|
nativeBuildInputs = [ cmake gfortran ];
|
2016-04-28 11:43:21 -07:00
|
|
|
|
2020-03-31 07:47:18 -07:00
|
|
|
propagatedBuildInputs = [ blas ];
|
2016-04-28 11:43:21 -07:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=true"
|
|
|
|
"-DUSE_XSDK_DEFAULTS=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./add-superlu-lib-as-dependency-for-the-unit-tests.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/";
|
|
|
|
license = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt";
|
2016-04-28 11:43:21 -07:00
|
|
|
description = "A library for the solution of large, sparse, nonsymmetric systems of linear equations";
|
2021-01-21 09:00:13 -08:00
|
|
|
platforms = lib.platforms.unix;
|
2016-04-28 11:43:21 -07:00
|
|
|
};
|
|
|
|
}
|