3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/physics/pythia/default.nix
2018-04-26 18:08:53 -04:00

34 lines
919 B
Nix

{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
stdenv.mkDerivation rec {
name = "pythia-${version}";
version = "8.235";
src = fetchurl {
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
sha256 = "17cfgs7v469pdnnzvlmdagcdhi0h419znqmaws90l9d8cmhhsbz8";
};
buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
preConfigure = ''
patchShebangs ./configure
'';
configureFlags = [
"--enable-shared"
"--with-hepmc2=${hepmc}"
"--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 ];
};
}