depot/third_party/nixpkgs/pkgs/development/libraries/physics/herwig/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 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.1";
src = fetchurl {
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
sha256 = "11m6xvardnk0i8x8b3dpwg4c4ncq0xmlfg2n5r5qmh6544pz7zyl";
};
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...
};
}