37 lines
994 B
Nix
37 lines
994 B
Nix
{ lib, stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pythia";
|
|
version = "8.304";
|
|
|
|
src = fetchurl {
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
|
sha256 = "18frx7xyvxnz57fxjncjyjzsk169h0jz6hxzjfpmwm3dzcc712fk";
|
|
};
|
|
|
|
buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./configure
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-shared"
|
|
"--with-lhapdf6=${lhapdf}"
|
|
] ++ (if 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 = lib.licenses.gpl2;
|
|
homepage = "http://home.thep.lu.se/~torbjorn/Pythia.html";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|