hepmc3: unbreak on aarch64-darwin

This commit is contained in:
Weijia Wang 2023-01-04 11:18:19 +01:00
parent 83481b8708
commit 5602d9f3c5

View file

@ -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;
}; };
} }