4a3aa3d7d8
GitOrigin-RevId: 24c9b05ac53e422f1af81a156f1fd58499eb27fb
36 lines
1,017 B
Nix
36 lines
1,017 B
Nix
{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pythia";
|
|
version = "8.303";
|
|
|
|
src = fetchurl {
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
|
sha256 = "0gli6zf8931i7kyminppisc9d0q69xxnalvhld5fgnkh4q82nz6d";
|
|
};
|
|
|
|
buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./configure
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-shared"
|
|
"--with-lhapdf6=${lhapdf}"
|
|
] ++ (if stdenv.lib.versions.major hepmc.version == "3" then [
|
|
"--with-hepmc3=${hepmc}"
|
|
] else [
|
|
"--with-hepmc2=${hepmc}"
|
|
]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A program for the generation of high-energy physics events";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
homepage = "http://home.thep.lu.se/~torbjorn/Pythia.html";
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|