2012-04-05 08:05:09 +00:00
|
|
|
{ stdenv, fetchurl, blas, liblapack, gfortran } :
|
2012-08-01 15:03:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-14 19:40:06 +00:00
|
|
|
version = "4.2.1";
|
2012-08-01 15:03:52 +00:00
|
|
|
name = "suitesparse-${version}";
|
2010-08-02 11:20:39 +00:00
|
|
|
src = fetchurl {
|
2012-08-01 15:03:52 +00:00
|
|
|
url = "http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-${version}.tar.gz" ;
|
2013-12-14 19:40:06 +00:00
|
|
|
sha256 = "1ga69637x7kdkiy3w3lq9dvva7220bdangv2lch2wx1hpi83h0p8";
|
2010-08-02 11:20:39 +00:00
|
|
|
};
|
2012-04-05 08:05:09 +00:00
|
|
|
buildInputs = [blas liblapack gfortran] ;
|
2010-08-02 11:20:39 +00:00
|
|
|
patches = [./disable-metis.patch];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export PREFIX=$out
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/include
|
2010-08-02 11:20:39 +00:00
|
|
|
'';
|
|
|
|
|
2012-08-01 15:03:52 +00:00
|
|
|
makeFlags = ''PREFIX=\"$(out)\" INSTALL_LIB=$(out)/lib INSTALL_INCLUDE=$(out)/include'';
|
|
|
|
|
2010-08-02 12:13:03 +00:00
|
|
|
NIX_CFLAGS = "-fPIC";
|
|
|
|
|
2010-08-02 11:20:39 +00:00
|
|
|
}
|