about summary refs log tree commit diff
path: root/src/libstore/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-16T16·46+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-16T16·46+0200
commit035aeb9547d4a33fe9037bc86f2ceeb9cbcf847b (patch)
tree73504e4ccbae4cc115c0148a25d7c7adaf774499 /src/libstore/local.mk
parent1e4a4a2e9fc382f47f58b448f3ee034cdd28218a (diff)
Fix using restricted mode with chroots
Diffstat (limited to 'src/libstore/local.mk')
-rw-r--r--src/libstore/local.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index 78b4d0fd4b94..771c06753a65 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -15,6 +15,7 @@ ifeq ($(OS), SunOS)
 endif
 
 libstore_CXXFLAGS = \
+ -DNIX_PREFIX=\"$(prefix)\" \
  -DNIX_STORE_DIR=\"$(storedir)\" \
  -DNIX_DATA_DIR=\"$(datadir)\" \
  -DNIX_STATE_DIR=\"$(localstatedir)/nix\" \