packaging: Add darwin -lsandbox in meson

This commit is contained in:
Robert Hensing 2024-10-03 12:23:17 +02:00
parent 170242cf0c
commit f8a1a149c7
2 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,11 @@ has_acl_support = cxx.has_header('sys/xattr.h') \
and cxx.has_function('lremovexattr')
configdata.set('HAVE_ACL_SUPPORT', has_acl_support.to_int())
if host_machine.system() == 'darwin'
sandbox = cxx.find_library('sandbox')
deps_other += [sandbox]
endif
subdir('build-utils-meson/threads')
boost = dependency(

View File

@ -7,6 +7,7 @@
, ninja
, pkg-config
, unixtools
, darwin
, nix-util
, boost
@ -65,6 +66,7 @@ mkMesonDerivation (finalAttrs: {
sqlite
] ++ lib.optional stdenv.hostPlatform.isLinux libseccomp
# There have been issues building these dependencies
++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.libs.sandbox
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform && (stdenv.isLinux || stdenv.isDarwin))
aws-sdk-cpp
;