reepca pushed a commit to branch guile-daemon
in repository guix.
commit 2088c214e60734005ca420d132868bc4a8fee15c
Author: Caleb Ristvedt <[email protected]>
Date: Mon Jun 5 22:34:59 2017 -0500
guix: register-path: use new %store-database-directory
* guix/config.scm.in (%store-database-directory): new variable.
* guix/store.scm (register-path): use variables from (guix config) instead
of
using environment variables directly.
* build-aux/test-env.in: Make sure canonicalize-path gets an existing path
from NIX_DB_DIR in tests.
---
build-aux/test-env.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/build-aux/test-env.in b/build-aux/test-env.in
index 1657556..44c1212 100644
--- a/build-aux/test-env.in
+++ b/build-aux/test-env.in
@@ -53,6 +53,8 @@ then
NIX_LOCALSTATE_DIR="@GUIX_TEST_ROOT@/var"
NIX_LOG_DIR="@GUIX_TEST_ROOT@/var/log/guix"
NIX_DB_DIR="@GUIX_TEST_ROOT@/db"
+ # same problem as above, for %store-database-directory.
+ mkdir -p "$NIX_DB_DIR"
NIX_ROOT_FINDER="@abs_top_builddir@/nix/scripts/list-runtime-roots"
# Choose a PID-dependent name to allow for parallel builds. Note