nixpkgs/pkgs/development/libraries/physics/herwig/default.nix
Dmitry Kalinkin 4342d99d82
herwig: 7.1.2 -> 7.1.3
thepeg: 2.1.2 -> 2.1.3
2018-05-30 16:08:10 -04:00

35 lines
1 KiB
Nix

{ stdenv, fetchpatch, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "herwig-${version}";
version = "7.1.3";
src = fetchurl {
url = "http://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
sha256 = "1iq1h5ap86729c4pfkswzfh0l2v20fyvqsb15c35g0407l54wfqm";
};
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 ]);
postPatch = ''
patchShebangs ./cat_with_cpplines
'';
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;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
};
}