2021-01-22 00:00:13 +07:00
|
|
|
{ lib, stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
|
2016-07-25 02:00:51 -04:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pythia";
|
2021-05-03 17:45:36 -04:00
|
|
|
version = "8.305";
|
2016-07-25 02:00:51 -04:00
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
2021-05-03 17:45:36 -04:00
|
|
|
sha256 = "03rpy2bmx67217fh1spfn36x9xrk0igcj56byki77lgj0y5mz21a";
|
2016-07-25 02:00:51 -04:00
|
|
|
};
|
|
|
|
|
|
2021-05-03 18:16:33 -04:00
|
|
|
nativeBuildInputs = [ rsync ];
|
|
|
|
|
buildInputs = [ boost fastjet hepmc zlib lhapdf ];
|
2016-07-25 02:00:51 -04:00
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
|
patchShebangs ./configure
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
|
"--enable-shared"
|
2018-04-26 18:08:53 -04:00
|
|
|
"--with-lhapdf6=${lhapdf}"
|
2021-01-22 00:00:13 +07:00
|
|
|
] ++ (if lib.versions.major hepmc.version == "3" then [
|
2020-10-07 22:41:30 -04:00
|
|
|
"--with-hepmc3=${hepmc}"
|
|
|
|
|
] else [
|
|
|
|
|
"--with-hepmc2=${hepmc}"
|
|
|
|
|
]);
|
2016-07-25 02:00:51 -04:00
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
2021-05-03 17:46:02 -04:00
|
|
|
meta = with lib; {
|
2016-07-25 02:00:51 -04:00
|
|
|
description = "A program for the generation of high-energy physics events";
|
2021-05-03 17:46:02 -04:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
|
homepage = "http://home.thep.lu.se/~torbjorn/Pythia.html";
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
2016-07-25 02:00:51 -04:00
|
|
|
};
|
|
|
|
|
}
|