2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
2016-07-17 17:00:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "herwig";
|
2020-04-11 19:22:29 +01:00
|
|
|
version = "7.2.1";
|
2016-07-17 17:00:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
|
2020-04-11 19:22:29 +01:00
|
|
|
sha256 = "11m6xvardnk0i8x8b3dpwg4c4ncq0xmlfg2n5r5qmh6544pz7zyl";
|
2016-07-17 17:00:17 +01: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 17:00:17 +01:00
|
|
|
|
2017-07-15 01:46:00 +01:00
|
|
|
postPatch = ''
|
2019-04-05 04:32:47 +01:00
|
|
|
patchShebangs ./
|
2016-07-17 17:00:17 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-thepeg=${thepeg}"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-12-16 01:56:40 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-07-17 17:00:17 +01:00
|
|
|
description = "A multi-purpose particle physics event generator";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://herwig.hepforge.org/";
|
2019-12-16 01:56:40 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
2016-07-17 17:00:17 +01:00
|
|
|
};
|
|
|
|
}
|