p4est: fixed versioning (#180737)

This commit is contained in:
Alexander Kiselyov
2022-07-18 12:21:23 +02:00
committed by GitHub
parent 278bd9c231
commit c03fbc7db8
@@ -1,5 +1,8 @@
{ lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, p4est-withMetis ? true, metis
, p4est-sc
}:
@@ -31,9 +34,11 @@ stdenv.mkDerivation {
postPatch = ''
sed -i -e "s:\(^\s*ACLOCAL_AMFLAGS.*\)\s@P4EST_SC_AMFLAGS@\s*$:\1 -I ${p4est-sc}/share/aclocal:" Makefile.am
'';
preConfigure = ''
preAutoreconf = ''
echo "2.8.0" > .tarball-version
${if mpiSupport then "unset CC" else ""}
'';
preConfigure = lib.optionalString mpiSupport ''
unset CC
'';
configureFlags = p4est-sc.configureFlags