aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/meson.build
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-04-17 23:27:15 -0600
committerQyriad <qyriad@qyriad.me>2024-04-18 10:45:27 -0600
commit077f45ee389643b04a6f0ee15ace8cda775a734a (patch)
tree5064bbbf333ba26a88fc9f28942223827242be81 /src/libstore/meson.build
parentcf0744ceed3b70114ea7b832ae0d02b72d2abfe5 (diff)
meson: correctly set -DSANDBOX_SHELL if we have it
The statically embedded busybox is not required for Lix to work, but package.nix explicitly sets this, which was accidentally being ignored. Change-Id: Ieeff830ac7d1f5fabe84d1a6cfd82f13d79035bf
Diffstat (limited to 'src/libstore/meson.build')
-rw-r--r--src/libstore/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/meson.build b/src/libstore/meson.build
index 652860872..fbf818825 100644
--- a/src/libstore/meson.build
+++ b/src/libstore/meson.build
@@ -156,6 +156,12 @@ cpp_str_defines = {
'NIX_MAN_DIR': mandir,
}
+if busybox.found()
+ cpp_str_defines += {
+ 'SANDBOX_SHELL': busybox.full_path()
+ }
+endif
+
cpp_args = []
foreach name, value : cpp_str_defines