From 5602d9f3c5c33f9e3fc4be1775157b623cfa049e Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 4 Jan 2023 11:18:19 +0100 Subject: [PATCH] hepmc3: unbreak on aarch64-darwin --- pkgs/development/libraries/physics/hepmc3/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/physics/hepmc3/default.nix b/pkgs/development/libraries/physics/hepmc3/default.nix index 22e60b20aef9..027100379bc9 100644 --- a/pkgs/development/libraries/physics/hepmc3/default.nix +++ b/pkgs/development/libraries/physics/hepmc3/default.nix @@ -32,6 +32,11 @@ stdenv.mkDerivation rec { ] ++ 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 = [ "-DHEPMC3_ENABLE_PYTHON=${if withPython then "ON" else "OFF"}" ] ++ lib.optionals withPython [ @@ -57,7 +62,5 @@ stdenv.mkDerivation rec { homepage = "http://hepmc.web.cern.ch/hepmc/"; platforms = platforms.unix; maintainers = with maintainers; [ veprbl ]; - # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.isDarwin && stdenv.isAarch64; }; }