records: Add support for 'innate' fields.
[guix.git] / guix / config.scm.in
blobeaadae961830583785ab0c69e92942234e55da2d
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;;
4 ;;; This file is part of GNU Guix.
5 ;;;
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
10 ;;;
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
19 (define-module (guix config)
20   #:export (%guix-package-name
21             %guix-version
22             %guix-bug-report-address
23             %guix-home-page-url
24             %store-directory
25             %state-directory
26             %config-directory
27             %guix-register-program
28             %system
29             %libgcrypt
30             %nixpkgs
31             %nix-instantiate
32             %gzip
33             %bzip2
34             %xz))
36 ;;; Commentary:
37 ;;;
38 ;;; Compile-time configuration of Guix.
39 ;;;
40 ;;; Code:
42 (define %guix-package-name
43   "@PACKAGE_NAME@")
45 (define %guix-version
46   "@PACKAGE_VERSION@")
48 (define %guix-bug-report-address
49   "@PACKAGE_BUGREPORT@")
51 (define %guix-home-page-url
52   "@PACKAGE_URL@")
54 (define %store-directory
55   (or (and=> (getenv "NIX_STORE_DIR") canonicalize-path)
56       "@storedir@"))
58 (define %state-directory
59   ;; This must match `NIX_STATE_DIR' as defined in `daemon.am'.
60   (or (getenv "NIX_STATE_DIR") "@guix_localstatedir@/guix"))
62 (define %config-directory
63   ;; This must match `NIX_CONF_DIR' as defined in `daemon.am'.
64   (or (getenv "NIX_CONF_DIR") "@guix_sysconfdir@/guix"))
66 (define %guix-register-program
67   ;; The 'guix-register' program.
68   (or (getenv "GUIX_REGISTER") "@guix_sbindir@/guix-register"))
70 (define %system
71   "@guix_system@")
73 (define %libgcrypt
74   "@LIBGCRYPT@")
76 (define %nixpkgs
77   (if (string=? "@NIXPKGS@" "")
78       #f
79       "@NIXPKGS@"))
81 (define %nix-instantiate
82   "@NIX_INSTANTIATE@")
84 (define %gzip
85   "@GZIP@")
87 (define %bzip2
88   "@BZIP2@")
90 (define %xz
91   "@XZ@")
93 ;;; config.scm ends here