From 5e8b7993b9dda4990215d983b6d2cc93ae8766d8 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 5 Jan 2023 18:44:22 +0100 Subject: [PATCH] nlojet: unbreak on aarch64-darwin (#209016) --- pkgs/development/libraries/physics/nlojet/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/physics/nlojet/default.nix b/pkgs/development/libraries/physics/nlojet/default.nix index 7c7753ff659..e7ecefb59c2 100644 --- a/pkgs/development/libraries/physics/nlojet/default.nix +++ b/pkgs/development/libraries/physics/nlojet/default.nix @@ -13,13 +13,14 @@ stdenv.mkDerivation rec { ./nlojet_clang_fix.patch ]; + # error: no member named 'finite' in the global namespace; did you mean simply 'finite'? + NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite"; + meta = { homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html"; license = lib.licenses.gpl2; description = "Implementation of calculation of the hadron jet cross sections"; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ veprbl ]; - # never built on aarch64-darwin since first introduction in nixpkgs - broken = stdenv.isDarwin && stdenv.isAarch64; }; }