lol
at 23.05-pre 38 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, boost, fastjet, fixDarwinDylibNames, hepmc, lhapdf, rsync, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "pythia"; 5 version = "8.307"; 6 7 src = fetchurl { 8 url = "https://pythia.org/download/pythia83/pythia${builtins.replaceStrings ["."] [""] version}.tgz"; 9 sha256 = "sha256-5bFNRKpZQzMuMt1d2poY/dGgCFxxmOKNhA4EFn+mAT0="; 10 }; 11 12 nativeBuildInputs = [ rsync ] 13 ++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ]; 14 buildInputs = [ boost fastjet hepmc zlib lhapdf ]; 15 16 preConfigure = '' 17 patchShebangs ./configure 18 ''; 19 20 configureFlags = [ 21 "--enable-shared" 22 "--with-lhapdf6=${lhapdf}" 23 ] ++ (if lib.versions.major hepmc.version == "3" then [ 24 "--with-hepmc3=${hepmc}" 25 ] else [ 26 "--with-hepmc2=${hepmc}" 27 ]); 28 29 enableParallelBuilding = true; 30 31 meta = with lib; { 32 description = "A program for the generation of high-energy physics events"; 33 license = licenses.gpl2Only; 34 homepage = "https://pythia.org"; 35 platforms = platforms.unix; 36 maintainers = with maintainers; [ veprbl ]; 37 }; 38}