diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2018-04-26 18:09:26 -0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2018-04-26 18:19:14 -0400 |
commit | 2f47c93ec848ae4b9594a13406f71982282ce0d7 (patch) | |
tree | d52a9e2a4e58a681a3b768d6937a3f12defd0aab /pkgs/applications/science | |
parent | 1cfc5f1da21b1527bc86e1b368bbda3885f125d1 (diff) | |
download | nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar.gz nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar.bz2 nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar.lz nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar.xz nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.tar.zst nixlib-2f47c93ec848ae4b9594a13406f71982282ce0d7.zip |
sacrifice: set LD_LIBRARY_PATH for pythia plugins to work
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/physics/sacrifice/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/science/physics/sacrifice/default.nix b/pkgs/applications/science/physics/sacrifice/default.nix index 99d6df77f853..6c25f720ebf9 100644 --- a/pkgs/applications/science/physics/sacrifice/default.nix +++ b/pkgs/applications/science/physics/sacrifice/default.nix @@ -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; |