forked from mirrors/nixpkgs
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
34 lines
912 B
Nix
34 lines
912 B
Nix
{ stdenv, fetchurl, boost, fastjet, hepmc2, lhapdf, rsync, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pythia";
|
|
version = "8.243";
|
|
|
|
src = fetchurl {
|
|
url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
|
|
sha256 = "0y8w5gdaczg8vdw63rkgjr1dcvqs2clqkdia34p30xcwgm1jgv7q";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|