2019-08-05 22:54:56 +02:00
|
|
|
{ stdenv, fetchurl, boost, fastjet, hepmc2, lhapdf, rsync, zlib }:
|
2016-07-25 08:00:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pythia";
|
2019-08-05 17:30:54 +02:00
|
|
|
version = "8.243";
|
2016-07-25 08:00:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
2019-08-05 17:30:54 +02:00
|
|
|
sha256 = "0y8w5gdaczg8vdw63rkgjr1dcvqs2clqkdia34p30xcwgm1jgv7q";
|
2016-07-25 08:00:51 +02:00
|
|
|
};
|
|
|
|
|
2019-08-05 22:54:56 +02:00
|
|
|
buildInputs = [ boost fastjet hepmc2 zlib rsync lhapdf ];
|
2016-07-25 08:00:51 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-shared"
|
2019-08-05 22:54:56 +02:00
|
|
|
"--with-hepmc2=${hepmc2}"
|
2018-04-27 00:08:53 +02:00
|
|
|
"--with-lhapdf6=${lhapdf}"
|
2016-07-25 08:00:51 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2016-10-22 12:05:23 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-07-25 08:00:51 +02:00
|
|
|
};
|
|
|
|
}
|