nixpkgs/pkgs/development/libraries/physics/pythia/default.nix

37 lines
1017 B
Nix
Raw Normal View History

2020-10-08 02:41:30 +00:00
{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
2016-07-25 06:00:51 +00:00
stdenv.mkDerivation rec {
pname = "pythia";
2020-10-08 00:28:19 +00:00
version = "8.303";
2016-07-25 06:00:51 +00:00
src = fetchurl {
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
2020-10-08 00:28:19 +00:00
sha256 = "0gli6zf8931i7kyminppisc9d0q69xxnalvhld5fgnkh4q82nz6d";
2016-07-25 06:00:51 +00:00
};
2020-10-08 02:41:30 +00:00
buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
2016-07-25 06:00:51 +00:00
preConfigure = ''
patchShebangs ./configure
'';
configureFlags = [
"--enable-shared"
"--with-lhapdf6=${lhapdf}"
2020-10-08 02:41:30 +00:00
] ++ (if stdenv.lib.versions.major hepmc.version == "3" then [
"--with-hepmc3=${hepmc}"
] else [
"--with-hepmc2=${hepmc}"
]);
2016-07-25 06:00:51 +00: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";
2016-07-25 06:00:51 +00:00
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
2016-07-25 06:00:51 +00:00
};
}