keystone: make sure dylib's install name is correct on darwin
Using @rpath leads to problems later on, e.g. when linking against haskellPackages.heystone which in turn links against keystone itself. As soon as different rpaths/libdirs are in play, things fall apart.
This commit is contained in:
parent
6ca8432ded
commit
ae2eac6d40
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
, pkg-config
|
||||
, cmake
|
||||
, python3
|
||||
, fixDarwinDylibNames
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -25,6 +26,9 @@ stdenv.mkDerivation rec {
|
|||
pkg-config
|
||||
cmake
|
||||
python3
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# TODO: could be replaced by setting CMAKE_INSTALL_NAME_DIR?
|
||||
fixDarwinDylibNames
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue