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