2010-08-02 13:20:39 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, blas
|
|
|
|
, liblapack
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "suitespare";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-3.5.0.tar.gz ;
|
|
|
|
sha256 = "0npn7c1j5qag5m2r0cmh3bwc42c1jk8k2yg2cfyxlcrp0h7wn4rc";
|
|
|
|
};
|
|
|
|
buildInputs = [blas liblapack] ;
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2010-08-02 14:13:03 +02:00
|
|
|
NIX_CFLAGS = "-fPIC";
|
|
|
|
|
2010-08-02 13:20:39 +02:00
|
|
|
}
|