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";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "7.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "10y3fb33zsinr0z3hzap9rsbcqhy1yjqnv4b4vz21g7mdlw6pq2k";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
|
|
|
|
# There is a bug that requires for default PDF's to be present during the build
|
|
|
|
++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-thepeg=${thepeg}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A multi-purpose particle physics event generator";
|
|
|
|
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;
|
|
|
|
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
|
|
|
};
|
|
|
|
}
|