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 {
|
|
|
|
name = "herwig-${version}";
|
2018-05-30 21:06:56 +01:00
|
|
|
version = "7.1.3";
|
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";
|
2018-05-30 21:06:56 +01:00
|
|
|
sha256 = "1iq1h5ap86729c4pfkswzfh0l2v20fyvqsb15c35g0407l54wfqm";
|
2016-07-17 17:00:17 +01: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 01:46:00 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./cat_with_cpplines
|
2016-07-17 17:00:17 +01: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 11:05:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-07-17 17:00:17 +01:00
|
|
|
};
|
|
|
|
}
|