suitesparse: do not build Mongoose & GraphBLAS

We already have package for them
This commit is contained in:
Jan Tojnar 2020-03-10 20:19:24 +01:00
parent 306cf6091f
commit c16d5b6534
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -3,7 +3,6 @@
, gfortran
, openblas
, metis
, cmake
, fixDarwinDylibNames
, gnum4
, enableCuda ? false
@ -24,7 +23,6 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
cmake
gnum4
] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
@ -34,13 +32,14 @@ stdenv.mkDerivation rec {
gfortran.cc.lib
] ++ stdenv.lib.optional enableCuda cudatoolkit;
dontUseCmakeConfigure = true;
preConfigure = ''
mkdir -p $out/lib
mkdir -p $dev/include
mkdir -p $doc/share/doc/${pname}-${version}
# Mongoose and GraphBLAS are packaged separately
sed -i "Makefile" -e '/GraphBLAS\|Mongoose/d'
sed -i "SuiteSparse_config/SuiteSparse_config.mk" \
-e '/CHOLMOD_CONFIG ?=/ s/$/ -DNPARTITION/'
''