hepmc3: unbreak on aarch64-darwin
This commit is contained in:
parent
83481b8708
commit
5602d9f3c5
1 changed files with 5 additions and 2 deletions
|
@ -32,6 +32,11 @@ stdenv.mkDerivation rec {
|
||||||
]
|
]
|
||||||
++ lib.optional withPython python;
|
++ lib.optional withPython python;
|
||||||
|
|
||||||
|
# error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'
|
||||||
|
preConfigure = lib.optionalString (stdenv.isDarwin && lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") ''
|
||||||
|
MACOSX_DEPLOYMENT_TARGET=10.16
|
||||||
|
'';
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DHEPMC3_ENABLE_PYTHON=${if withPython then "ON" else "OFF"}"
|
"-DHEPMC3_ENABLE_PYTHON=${if withPython then "ON" else "OFF"}"
|
||||||
] ++ lib.optionals withPython [
|
] ++ lib.optionals withPython [
|
||||||
|
@ -57,7 +62,5 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "http://hepmc.web.cern.ch/hepmc/";
|
homepage = "http://hepmc.web.cern.ch/hepmc/";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ veprbl ];
|
maintainers = with maintainers; [ veprbl ];
|
||||||
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
||||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue