mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
34 lines
914 B
Nix
34 lines
914 B
Nix
{ stdenv, fetchurl, boost, fastjet, hepmc2, lhapdf, rsync, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pythia";
|
|
version = "8.244";
|
|
|
|
src = fetchurl {
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
|
sha256 = "1jlj9hgmk2gcm5p0zqsiz0dpv9vvj8ip261si7frrwfsk7wq0j73";
|
|
};
|
|
|
|
buildInputs = [ boost fastjet hepmc2 zlib rsync lhapdf ];
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./configure
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-shared"
|
|
"--with-hepmc2=${hepmc2}"
|
|
"--with-lhapdf6=${lhapdf}"
|
|
];
|
|
|
|
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;
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|