2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
|
2016-07-17 16:00:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "herwig-${version}";
|
2019-04-05 03:32:47 +00:00
|
|
|
version = "7.1.5";
|
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";
|
2019-04-05 03:32:47 +00:00
|
|
|
sha256 = "0jnrv59zfa41gc37pqr3vaiz5jkh7w0k0alcax37b3mlbsnacr9r";
|
2016-07-17 16:00:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
|
|
|
|
# There is a bug that requires for MMHT PDF's to be presend during the build
|
|
|
|
++ (with lhapdf.pdf_sets; [ MMHT2014lo68cl MMHT2014nlo68cl ]);
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A multi-purpose particle physics event generator";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = https://herwig.hepforge.org/;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-22 10:05:23 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2018-11-22 00:39:23 +00:00
|
|
|
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
|
2016-07-17 16:00:17 +00:00
|
|
|
};
|
|
|
|
}
|