nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 36 lines 934 B view raw
1{ stdenv, fetchurl, cmake, 2 gfortran, openblasCompat}: 3 4stdenv.mkDerivation rec { 5 version = "5.2.1"; 6 name = "superlu-${version}"; 7 8 src = fetchurl { 9 url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz"; 10 sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8"; 11 }; 12 13 buildInputs = [ cmake gfortran ]; 14 15 propagatedBuildInputs = [ openblasCompat ]; 16 17 cmakeFlags = [ 18 "-DBUILD_SHARED_LIBS=true" 19 "-DUSE_XSDK_DEFAULTS=true" 20 ]; 21 22 patches = [ 23 ./find-openblas-library.patch 24 ./add-superlu-lib-as-dependency-for-the-unit-tests.patch 25 ]; 26 27 doCheck = true; 28 checkTarget = "test"; 29 30 meta = { 31 homepage = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/; 32 license = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt; 33 description = "A library for the solution of large, sparse, nonsymmetric systems of linear equations"; 34 platforms = stdenv.lib.platforms.unix; 35 }; 36}