2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
2016-07-17 16:00:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "herwig";
|
2021-02-24 04:56:37 +00:00
|
|
|
version = "7.2.2";
|
2016-07-17 16:00:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
2021-02-24 04:56:37 +00:00
|
|
|
sha256 = "10y3fb33zsinr0z3hzap9rsbcqhy1yjqnv4b4vz21g7mdlw6pq2k";
|
2016-07-17 16:00:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
|
2019-12-16 01:56:40 +00:00
|
|
|
# There is a bug that requires for default PDF's to be present during the build
|
|
|
|
++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]);
|
2016-07-17 16:00:17 +00:00
|
|
|
|
2017-07-15 00:46:00 +00:00
|
|
|
postPatch = ''
|
2019-04-05 03:32:47 +00:00
|
|
|
patchShebangs ./
|
2016-07-17 16:00:17 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-thepeg=${thepeg}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-07-17 16:00:17 +00:00
|
|
|
description = "A multi-purpose particle physics event generator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://herwig.hepforge.org/";
|
2021-02-24 05:30:11 +00:00
|
|
|
license = licenses.gpl3Only;
|
2019-12-16 01:56:40 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
2016-07-17 16:00:17 +00:00
|
|
|
};
|
|
|
|
}
|