From 6aa5dc11f168a7d30bfe7b94cc0c23990f6ccc7f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 25 Jul 2016 02:00:51 -0400 Subject: [PATCH] pythia: init at 8.219 --- .../libraries/physics/pythia/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/physics/pythia/default.nix diff --git a/pkgs/development/libraries/physics/pythia/default.nix b/pkgs/development/libraries/physics/pythia/default.nix new file mode 100644 index 000000000000..5a422a1c7c15 --- /dev/null +++ b/pkgs/development/libraries/physics/pythia/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }: + +stdenv.mkDerivation rec { + name = "pythia-${version}"; + version = "8.219"; + + src = fetchurl { + url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz"; + sha256 = "13fhphddl0jir8jyjvj6a9qz14wiv02q9lby8mcdyv8gsw0ir8hy"; + }; + + buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ]; + + preConfigure = '' + patchShebangs ./configure + ''; + + configureFlags = [ + "--enable-shared" + "--with-hepmc2=${hepmc}" + ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7276ea05dcf4..ff7778bf0ac4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16723,6 +16723,8 @@ in lhapdf = callPackage ../development/libraries/physics/lhapdf { }; + pythia = callPackage ../development/libraries/physics/pythia { }; + rivet = callPackage ../development/libraries/physics/rivet { }; thepeg = callPackage ../development/libraries/physics/thepeg { };