2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nlojet++";
|
|
|
|
version = "4.1.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://desy.de/~znagy/hep-programs/nlojet++/nlojet++-${version}.tar.gz";
|
|
|
|
sha256 = "18qfn5kjzvnyh29x40zm2maqzfmrnay9r58n8pfpq5lcphdhhv8p";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./nlojet_clang_fix.patch
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
# error: no member named 'finite' in the global namespace; did you mean simply 'finite'?
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.desy.de/~znagy/Site/NLOJet++.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Implementation of calculation of the hadron jet cross sections";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|