petsc: 3.8.4 -> 3.12.4
+ add cxx flag to configure, because getdp needs it
This commit is contained in:
parent
7db5d94c36
commit
4f58c15ee6
@ -1,17 +1,12 @@
|
|||||||
{ stdenv
|
{ stdenv , fetchurl , blas , gfortran , liblapack , python }:
|
||||||
, fetchurl
|
|
||||||
, blas
|
|
||||||
, gfortran
|
|
||||||
, liblapack
|
|
||||||
, python }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "petsc";
|
pname = "petsc";
|
||||||
version = "3.8.4";
|
version = "3.12.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-${version}.tar.gz";
|
url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-${version}.tar.gz";
|
||||||
sha256 = "1iy49gagxncx09d88kxnwkj876p35683mpfk33x37165si6xqy4z";
|
sha256 = "1hw4f12v2xwrs37gjh83dbixhg0yxandqx7s7k5vlfx91l9l3aan";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ blas gfortran.cc.lib liblapack python ];
|
nativeBuildInputs = [ blas gfortran.cc.lib liblapack python ];
|
||||||
@ -26,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
$configureFlagsArray
|
$configureFlagsArray
|
||||||
"--CC=$CC"
|
"--CC=$CC"
|
||||||
"--with-cxx=0"
|
"--with-cxx=g++"
|
||||||
"--with-fc=0"
|
"--with-fc=0"
|
||||||
"--with-mpi=0"
|
"--with-mpi=0"
|
||||||
"--with-blas-lib=[${blas}/lib/libblas.a,${gfortran.cc.lib}/lib/libgfortran.a]"
|
"--with-blas-lib=[${blas}/lib/libblas.a,${gfortran.cc.lib}/lib/libgfortran.a]"
|
||||||
@ -34,17 +29,14 @@ stdenv.mkDerivation rec {
|
|||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
meta = with stdenv.lib; {
|
||||||
rm $out/bin/petscmpiexec
|
description = ''
|
||||||
rm $out/bin/popup
|
Library of linear algebra algorithms for solving partial differential
|
||||||
rm $out/bin/uncrustify.cfg
|
equations
|
||||||
rm -rf $out/bin/win32fe
|
|
||||||
'';
|
'';
|
||||||
|
homepage = "https://www.mcs.anl.gov/petsc/index.html";
|
||||||
meta = {
|
license = licenses.bsd2;
|
||||||
description = "Library of linear algebra algorithms for solving partial differential equations";
|
maintainers = with maintainers; [ wucke13 ];
|
||||||
homepage = https://www.mcs.anl.gov/petsc/index.html;
|
platforms = platforms.all;
|
||||||
platforms = stdenv.lib.platforms.all;
|
|
||||||
license = stdenv.lib.licenses.bsd2;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user