Merge pull request #39577 from veprbl/pr/pythia_8.235

pythia: 8.226 -> 8.235, enable lhapdf6 plugin
This commit is contained in:
Jörg Thalheim
2018-04-28 11:44:37 +01:00
committed by GitHub
2 changed files with 9 additions and 4 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, hepmc, lhapdf, pythia }:
{ stdenv, fetchurl, boost, hepmc, lhapdf, pythia, makeWrapper }:
stdenv.mkDerivation rec {
name = "sacrifice-${version}";
@@ -10,6 +10,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ boost hepmc lhapdf pythia ];
nativeBuildInputs = [ makeWrapper ];
patches = [
./compat.patch
@@ -27,8 +28,11 @@ stdenv.mkDerivation rec {
"--with-pythia=${pythia}"
];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
postInstall = if stdenv.isDarwin then ''
install_name_tool -add_rpath ${pythia}/lib "$out"/bin/run-pythia
'' else ''
wrapProgram $out/bin/run-pythia \
--prefix LD_LIBRARY_PATH : "${pythia}/lib"
'';
enableParallelBuilding = true;