pythia: add hepmc3 support

This commit is contained in:
Dmitry Kalinkin 2020-10-07 22:41:30 -04:00
parent b0486f3171
commit 72e7d87b01
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, fastjet, hepmc2, lhapdf, rsync, zlib }:
{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
stdenv.mkDerivation rec {
pname = "pythia";
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "0gli6zf8931i7kyminppisc9d0q69xxnalvhld5fgnkh4q82nz6d";
};
buildInputs = [ boost fastjet hepmc2 zlib rsync lhapdf ];
buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
preConfigure = ''
patchShebangs ./configure
@ -17,9 +17,12 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-shared"
"--with-hepmc2=${hepmc2}"
"--with-lhapdf6=${lhapdf}"
];
] ++ (if stdenv.lib.versions.major hepmc.version == "3" then [
"--with-hepmc3=${hepmc}"
] else [
"--with-hepmc2=${hepmc}"
]);
enableParallelBuilding = true;

View File

@ -26755,7 +26755,9 @@ in
nlojet = callPackage ../development/libraries/physics/nlojet { };
pythia = callPackage ../development/libraries/physics/pythia { };
pythia = callPackage ../development/libraries/physics/pythia {
hepmc = hepmc2;
};
rivet = callPackage ../development/libraries/physics/rivet {
hepmc = hepmc2;