edencommon: condition shared libraries on platform setting

This commit is contained in:
Emily
2024-11-14 03:16:01 +00:00
parent 509f33b995
commit c8d4e11d1c
+6
View File
@@ -54,6 +54,12 @@ stdenv.mkDerivation (finalAttrs: {
(darwinMinVersionHook "11.0")
];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
(lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true)
];
postPatch = ''
# The CMake build requires the FBThrift Python support even though
# its not used, presumably because of the relevant code having