2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "herwig";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "7.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-JiSBnS3/EFupUuobXPEutvSSbUlRd0pBkHaZ4vVnaGw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool gfortran ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
buildInputs = [ boost fastjet gsl thepeg zlib ]
|
2020-04-24 23:36:52 +00:00
|
|
|
# There is a bug that requires for default PDF's to be present during the build
|
|
|
|
++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
# Fix failing "make install" being unable to find HwEvtGenInterface.so
|
|
|
|
substituteInPlace src/defaults/decayers.in.in \
|
|
|
|
--replace "read EvtGenDecayer.in" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-thepeg=${thepeg}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multi-purpose particle physics event generator";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://herwig.hepforge.org/";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
platforms = platforms.unix;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|