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:
sternenseemann 2023-02-19 20:03:21 +01:00
parent 6ca8432ded
commit ae2eac6d40

View file

@ -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; {