nlojet: unbreak on aarch64-darwin (#209016)

This commit is contained in:
Weijia Wang 2023-01-05 18:44:22 +01:00 committed by GitHub
parent 9be23ea41a
commit 5e8b7993b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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