git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39577 from veprbl/pr/pythia_8.235

pythia: 8.226 -> 8.235, enable lhapdf6 plugin

commit68e75fbb53d8798f02c2686d0cc6bc267d66e3b7 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 28 Apr 2018, 11:44 (9 years ago) parent5621e1a2f47c93
2 files changed+9−4
pkgs/applications/science/physics/sacrifice/default.nix+6−2 pkgs/development/libraries/physics/pythia/default.nix+3−2
pkgs/applications/science/physics/sacrifice/default.nix+6−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, boost, hepmc, lhapdf, pythia }:
1+{ stdenv, fetchurl, boost, hepmc, lhapdf, pythia, makeWrapper }:
22
33stdenv.mkDerivation rec {
44 name = "sacrifice-${version}";
@@ -10,6 +10,7 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 buildInputs = [ boost hepmc lhapdf pythia ];
13+ nativeBuildInputs = [ makeWrapper ];
1314
1415 patches = [
1516 ./compat.patch
@@ -27,8 +28,11 @@ stdenv.mkDerivation rec {
2728 "--with-pythia=${pythia}"
2829 ];
2930
30− postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
31+ postInstall = if stdenv.isDarwin then ''
3132 install_name_tool -add_rpath ${pythia}/lib "$out"/bin/run-pythia
33+ '' else ''
34+ wrapProgram $out/bin/run-pythia \
35+ --prefix LD_LIBRARY_PATH : "${pythia}/lib"
3236 '';
3337
3438 enableParallelBuilding = true;
pkgs/development/libraries/physics/pythia/default.nix+3−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "pythia-${version}";
5− version = "8.226";
5+ version = "8.235";
66
77 src = fetchurl {
88 url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia${builtins.replaceStrings ["."] [""] version}.tgz";
9− sha256 = "1jfjkq78d1llrrm2k5pgsl92a5z8af9rx3n83rzv28lxrqdjix4g";
9+ sha256 = "17cfgs7v469pdnnzvlmdagcdhi0h419znqmaws90l9d8cmhhsbz8";
1010 };
1111
1212 buildInputs = [ boost fastjet hepmc zlib rsync lhapdf ];
@@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
1818 configureFlags = [
1919 "--enable-shared"
2020 "--with-hepmc2=${hepmc}"
21+ "--with-lhapdf6=${lhapdf}"
2122 ];
2223
2324 enableParallelBuilding = true;