mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
packaging: Add darwin -lsandbox in meson
This commit is contained in:
parent
170242cf0c
commit
f8a1a149c7
@ -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(
|
||||
|
@ -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
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user