lol
at 23.05-pre 40 lines 1.3 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.3"; 6 7 src = fetchurl { 8 url = "https://www.hepforge.org/archive/herwig/Herwig-${version}.tar.bz2"; 9 hash = "sha256-VZmJk3mwGwnjMaJCbXjTm39uwSbbJUPp00Cu/mqlD4Q="; 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 # Fix failing "make install" being unable to find HwEvtGenInterface.so 22 substituteInPlace src/defaults/decayers.in.in \ 23 --replace "read EvtGenDecayer.in" "" 24 ''; 25 26 configureFlags = [ 27 "--with-thepeg=${thepeg}" 28 ]; 29 30 enableParallelBuilding = true; 31 32 meta = with lib; { 33 description = "A multi-purpose particle physics event generator"; 34 homepage = "https://herwig.hepforge.org/"; 35 license = licenses.gpl3Only; 36 maintainers = with maintainers; [ veprbl ]; 37 platforms = platforms.unix; 38 broken = stdenv.isAarch64; # doesn't compile: ignoring return value of 'FILE* freopen... 39 }; 40}