Loading pkgs/by-name/li/libspatialindex/no-rpath-for-darwin.diff 0 → 100644 +11 −0 Original line number Diff line number Diff line --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -248,7 +248,7 @@ if(HAVE_BCOPY) endif() -if(APPLE) +if(FALSE) set(MACOSX_RPATH ON) set_target_properties(spatialindex spatialindex_c PROPERTIES INSTALL_NAME_DIR "@rpath") pkgs/by-name/li/libspatialindex/package.nix +5 −6 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ stdenv, fetchFromGitHub, cmake, fixDarwinDylibNames, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -17,11 +16,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-a2CzRLHdQMnVhHZhwYsye4X644r8gp1m6vU2CJpSRpU="; }; patches = [ ./no-rpath-for-darwin.diff ]; postPatch = '' patchShebangs test/ ''; nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; nativeBuildInputs = [ cmake ]; cmakeFlags = [ (lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck) Loading @@ -37,10 +40,6 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' install_name_tool -change "@rpath/libspatialindex.7.dylib" "$out/lib/libspatialindex.7.dylib" $out/lib/libspatialindex_c.dylib ''; meta = { description = "Extensible spatial index library in C++"; homepage = "https://libspatialindex.org"; Loading Loading
pkgs/by-name/li/libspatialindex/no-rpath-for-darwin.diff 0 → 100644 +11 −0 Original line number Diff line number Diff line --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -248,7 +248,7 @@ if(HAVE_BCOPY) endif() -if(APPLE) +if(FALSE) set(MACOSX_RPATH ON) set_target_properties(spatialindex spatialindex_c PROPERTIES INSTALL_NAME_DIR "@rpath")
pkgs/by-name/li/libspatialindex/package.nix +5 −6 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ stdenv, fetchFromGitHub, cmake, fixDarwinDylibNames, }: stdenv.mkDerivation (finalAttrs: { Loading @@ -17,11 +16,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-a2CzRLHdQMnVhHZhwYsye4X644r8gp1m6vU2CJpSRpU="; }; patches = [ ./no-rpath-for-darwin.diff ]; postPatch = '' patchShebangs test/ ''; nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; nativeBuildInputs = [ cmake ]; cmakeFlags = [ (lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck) Loading @@ -37,10 +40,6 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' install_name_tool -change "@rpath/libspatialindex.7.dylib" "$out/lib/libspatialindex.7.dylib" $out/lib/libspatialindex_c.dylib ''; meta = { description = "Extensible spatial index library in C++"; homepage = "https://libspatialindex.org"; Loading