3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/science/math/superlu/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

37 lines
924 B
Nix

{ stdenv, fetchurl, cmake,
gfortran, openblasCompat}:
stdenv.mkDerivation rec {
version = "5.2.1";
pname = "superlu";
src = fetchurl {
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz";
sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8";
};
buildInputs = [ cmake gfortran ];
propagatedBuildInputs = [ openblasCompat ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=true"
"-DUSE_XSDK_DEFAULTS=true"
];
patches = [
./find-openblas-library.patch
./add-superlu-lib-as-dependency-for-the-unit-tests.patch
];
doCheck = true;
checkTarget = "test";
meta = {
homepage = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/;
license = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt;
description = "A library for the solution of large, sparse, nonsymmetric systems of linear equations";
platforms = stdenv.lib.platforms.unix;
};
}