pythia: add fixDarwinDylibNames

Library not loaded: @rpath/libpythia8.dylib
This commit is contained in:
Dmitry Kalinkin 2022-08-18 17:45:36 -04:00
parent 7e533d199f
commit 91e8f10dbd
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, boost, fastjet, hepmc, lhapdf, rsync, zlib }:
{ lib, stdenv, fetchurl, boost, fastjet, fixDarwinDylibNames, hepmc, lhapdf, rsync, zlib }:
stdenv.mkDerivation rec {
pname = "pythia";
@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-5bFNRKpZQzMuMt1d2poY/dGgCFxxmOKNhA4EFn+mAT0=";
};
nativeBuildInputs = [ rsync ];
nativeBuildInputs = [ rsync ]
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
buildInputs = [ boost fastjet hepmc zlib lhapdf ];
preConfigure = ''