2019-08-05 21:54:56 +01:00
|
|
|
{ stdenv, fetchurl, boost, fastjet, hepmc2, lhapdf, rsync, zlib }:
|
2016-07-25 07:00:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pythia";
|
2019-12-20 15:28:56 +00:00
|
|
|
version = "8.244";
|
2016-07-25 07:00:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
2019-12-20 15:28:56 +00:00
|
|
|
sha256 = "1jlj9hgmk2gcm5p0zqsiz0dpv9vvj8ip261si7frrwfsk7wq0j73";
|
2016-07-25 07:00:51 +01:00
|
|
|
};
|
|
|
|
|
2019-08-05 21:54:56 +01:00
|
|
|
buildInputs = [ boost fastjet hepmc2 zlib rsync lhapdf ];
|
2016-07-25 07:00:51 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-shared"
|
2019-08-05 21:54:56 +01:00
|
|
|
"--with-hepmc2=${hepmc2}"
|
2018-04-26 23:08:53 +01:00
|
|
|
"--with-lhapdf6=${lhapdf}"
|
2016-07-25 07:00:51 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program for the generation of high-energy physics events";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://home.thep.lu.se/~torbjorn/Pythia.html";
|
2016-07-25 07:00:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-22 11:05:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-07-25 07:00:51 +01:00
|
|
|
};
|
|
|
|
}
|