2012-04-05 09:05:09 +01:00
|
|
|
{ stdenv, fetchurl, blas, liblapack, gfortran } :
|
2012-08-01 16:03:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "4.0.0";
|
|
|
|
name = "suitesparse-${version}";
|
2010-08-02 12:20:39 +01:00
|
|
|
src = fetchurl {
|
2012-08-01 16:03:52 +01:00
|
|
|
url = "http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-${version}.tar.gz" ;
|
|
|
|
sha256 = "1nvbdw10wa6654k8sa2vhr607q6fflcywyji5xd767cqpwag4v5j";
|
2010-08-02 12:20:39 +01:00
|
|
|
};
|
2012-04-05 09:05:09 +01:00
|
|
|
buildInputs = [blas liblapack gfortran] ;
|
2010-08-02 12:20:39 +01: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 12:20:39 +01:00
|
|
|
'';
|
|
|
|
|
2012-08-01 16:03:52 +01:00
|
|
|
makeFlags = ''PREFIX=\"$(out)\" INSTALL_LIB=$(out)/lib INSTALL_INCLUDE=$(out)/include'';
|
|
|
|
|
2010-08-02 13:13:03 +01:00
|
|
|
NIX_CFLAGS = "-fPIC";
|
|
|
|
|
2010-08-02 12:20:39 +01:00
|
|
|
}
|