at 22.05-pre 36 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, boost, fastjet, gfortran, gsl, lhapdf, thepeg, zlib, autoconf, automake, libtool }: 2 3stdenv.mkDerivation rec { 4 pname = "herwig"; 5 version = "7.2.2"; 6 7 src = fetchurl { 8 url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2"; 9 sha256 = "10y3fb33zsinr0z3hzap9rsbcqhy1yjqnv4b4vz21g7mdlw6pq2k"; 10 }; 11 12 nativeBuildInputs = [ autoconf automake libtool gfortran ]; 13 14 buildInputs = [ boost fastjet gsl thepeg zlib ] 15 # There is a bug that requires for default PDF's to be present during the build 16 ++ (with lhapdf.pdf_sets; [ CT14lo CT14nlo ]); 17 18 postPatch = '' 19 patchShebangs ./ 20 ''; 21 22 configureFlags = [ 23 "--with-thepeg=${thepeg}" 24 ]; 25 26 enableParallelBuilding = true; 27 28 meta = with lib; { 29 description = "A multi-purpose particle physics event generator"; 30 homepage = "https://herwig.hepforge.org/"; 31 license = licenses.gpl3Only; 32 maintainers = with maintainers; [ veprbl ]; 33 platforms = platforms.unix; 34 broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen... 35 }; 36}