nixpkgs-suyu/pkgs/development/libraries/physics/herwig/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "herwig-${version}";
2018-11-01 03:13:52 +01:00
version = "7.1.4";
src = fetchurl {
url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2";
2018-11-01 03:13:52 +01:00
sha256 = "1awr1jz0q873x8bgwiilzklhk1zkgm6slvpychpnvsf9vk05mmdx";
};
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 ];
2018-11-22 01:39:23 +01:00
broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen...
};
}