mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
packaging: Add darwin -lsandbox in meson
This commit is contained in:
parent
170242cf0c
commit
f8a1a149c7
2 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,11 @@ has_acl_support = cxx.has_header('sys/xattr.h') \
|
||||||
and cxx.has_function('lremovexattr')
|
and cxx.has_function('lremovexattr')
|
||||||
configdata.set('HAVE_ACL_SUPPORT', has_acl_support.to_int())
|
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')
|
subdir('build-utils-meson/threads')
|
||||||
|
|
||||||
boost = dependency(
|
boost = dependency(
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, unixtools
|
, unixtools
|
||||||
|
, darwin
|
||||||
|
|
||||||
, nix-util
|
, nix-util
|
||||||
, boost
|
, boost
|
||||||
|
@ -65,6 +66,7 @@ mkMesonDerivation (finalAttrs: {
|
||||||
sqlite
|
sqlite
|
||||||
] ++ lib.optional stdenv.hostPlatform.isLinux libseccomp
|
] ++ lib.optional stdenv.hostPlatform.isLinux libseccomp
|
||||||
# There have been issues building these dependencies
|
# 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))
|
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform && (stdenv.isLinux || stdenv.isDarwin))
|
||||||
aws-sdk-cpp
|
aws-sdk-cpp
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue