From ae2eac6d408cc255d28d57a8a323fed94f85554e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 19 Feb 2023 20:03:21 +0100 Subject: [PATCH] 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. --- pkgs/development/libraries/keystone/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/keystone/default.nix b/pkgs/development/libraries/keystone/default.nix index 0bb979f7a55..278385a1fd6 100644 --- a/pkgs/development/libraries/keystone/default.nix +++ b/pkgs/development/libraries/keystone/default.nix @@ -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; {