3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/suitesparse/default.nix

24 lines
474 B
Nix
Raw Normal View History

{ 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
ensureDir $out/lib
ensureDir $out/include
'';
NIX_CFLAGS = "-fPIC";
}