diff options
author | Caleb Ristvedt <caleb.ristvedt@cune.org> | 2018-05-27 19:19:30 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-01 15:35:32 +0200 |
commit | 7f9d184d9b688d13ce76eefabaddcfa76bdde2b5 (patch) | |
tree | 49e5cfef7619c8faff4424990831ddea30e8d9dc /guix/config.scm.in | |
parent | d59e75f3b5b82692bd250a1a3a9965397bb588c5 (diff) | |
download | gnu-guix-7f9d184d9b688d13ce76eefabaddcfa76bdde2b5.tar gnu-guix-7f9d184d9b688d13ce76eefabaddcfa76bdde2b5.tar.gz |
Add (gnu store database).
* guix/config.scm.in (%store-database-directory): New variable.
* guix/store/database.scm: New file.
* tests/store-database.scm: New file.
* Makefile.am (STORE_MODULES): New variable.
(MODULES, MODULES_NOT_COMPILED): Adjust accordingly.
(SCM_TESTS) [HAVE_GUILE_SQLITE3]: Add tests/store-database.scm.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/config.scm.in')
-rw-r--r-- | guix/config.scm.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guix/config.scm.in b/guix/config.scm.in index 8f2c4abd8e..dfe5fe0dbf 100644 --- a/guix/config.scm.in +++ b/guix/config.scm.in @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2017 Caleb Ristvedt <caleb.ristvedt@cune.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -29,6 +30,7 @@ %store-directory %state-directory + %store-database-directory %config-directory %guix-register-program @@ -80,6 +82,10 @@ (or (getenv "NIX_STATE_DIR") (string-append %localstatedir "/guix"))) +(define %store-database-directory + (or (and=> (getenv "NIX_DB_DIR") canonicalize-path) + (string-append %state-directory "/db"))) + (define %config-directory ;; This must match `GUIX_CONFIGURATION_DIRECTORY' as defined in `nix/local.mk'. (or (getenv "GUIX_CONFIGURATION_DIRECTORY") |