nixpkgs/pkgs/development/libraries/physics/herwig/default.nix
Dmitry Kalinkin 95b0bc0989
herwig: 7.1.6 -> 7.2.0
thepeg: 2.1.6 -> 2.2.0
2019-12-15 20:56:40 -05:00

37 lines
1.1 KiB
Nix

{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
pname = "herwig";
version = "7.2.0";
src = fetchurl {
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
sha256 = "0r5iyai2j99pk9p36g4rp98bxm55zd1ik9kgm2zf5zgpvxfm8csr";
};
nativeBuildInputs = [ autoconf automake libtool ];
buildInputs = [ boost fastjet gfortran gsl thepeg zlib ]
# There is a bug that requires for default PDF's to be present during the build
++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]);
postPatch = ''
patchShebangs ./
'';
configureFlags = [
"--with-thepeg=${thepeg}"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A multi-purpose particle physics event generator";
homepage = https://herwig.hepforge.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ veprbl ];
platforms = platforms.unix;
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
};
}