2024-08-22 23:48:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
autoconf,
|
|
|
|
gfortran,
|
|
|
|
hepmc3,
|
|
|
|
fastjet,
|
|
|
|
lhapdf,
|
|
|
|
rivet,
|
|
|
|
sqlite,
|
|
|
|
}:
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sherpa";
|
2024-10-19 17:33:01 +00:00
|
|
|
version = "2.2.16";
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.hepforge.org/archive/sherpa/SHERPA-MC-${version}.tar.gz";
|
2024-10-19 17:33:01 +00:00
|
|
|
sha256 = "sha256-AntSN5BhtJFuDBoOFvrzoCr/W4SnX5CeAXiTcz9MjUs=";
|
2016-12-30 17:32:53 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 00:14:20 +00:00
|
|
|
postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
2020-08-16 13:12:48 +00:00
|
|
|
sed -ie '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C
|
|
|
|
'';
|
|
|
|
|
2021-10-24 22:22:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
gfortran
|
|
|
|
];
|
2021-09-03 11:33:32 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
lhapdf
|
|
|
|
rivet
|
|
|
|
];
|
2016-12-30 17:32:53 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-01-07 06:36:51 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-sqlite3=${sqlite.dev}"
|
2024-08-22 23:48:13 +00:00
|
|
|
"--enable-hepmc3=${hepmc3}"
|
2017-01-07 06:36:51 +00:00
|
|
|
"--enable-fastjet=${fastjet}"
|
|
|
|
"--enable-lhapdf=${lhapdf}"
|
|
|
|
"--enable-rivet=${rivet}"
|
2021-04-13 13:34:27 +00:00
|
|
|
"--enable-pythia"
|
2017-01-07 06:36:51 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-12-30 17:32:53 +00:00
|
|
|
description = "Simulation of High-Energy Reactions of PArticles in lepton-lepton, lepton-photon, photon-photon, lepton-hadron and hadron-hadron collisions";
|
2020-04-28 20:42:26 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "https://gitlab.com/sherpa-team/sherpa";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
2022-12-06 20:47:40 +00:00
|
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
|
|
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
|
2016-12-30 17:32:53 +00:00
|
|
|
};
|
|
|
|
}
|