gnu: icecat: Update to 60.7.2-guix1 [security fixes].
[guix.git] / guix / config.scm.in
blob0ada0f3c38c1ff972191e14597fbb803ef1dc803
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2017 Caleb Ristvedt <caleb.ristvedt@cune.org>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
20 (define-module (guix config)
21   #:export (%guix-package-name
22             %guix-version
23             %guix-bug-report-address
24             %guix-home-page-url
26             %storedir
27             %localstatedir
28             %sysconfdir
30             %store-directory
31             %state-directory
32             %store-database-directory
33             %config-directory
35             %system
36             %libz
37             %liblz
38             %gzip
39             %bzip2
40             %xz))
42 ;;; Commentary:
43 ;;;
44 ;;; Compile-time configuration of Guix.  When adding a substitution variable
45 ;;; here, make sure to equip (guix scripts pull) to substitute it.
46 ;;;
47 ;;; Code:
49 (define %guix-package-name
50   "@PACKAGE_NAME@")
52 (define %guix-version
53   "@PACKAGE_VERSION@")
55 (define %guix-bug-report-address
56   "@PACKAGE_BUGREPORT@")
58 (define %guix-home-page-url
59   "@PACKAGE_URL@")
61 (define %storedir
62   "@storedir@")
64 (define %localstatedir
65   "@guix_localstatedir@")
67 (define %sysconfdir
68   "@guix_sysconfdir@")
70 (define %store-directory
71   (or (and=> (getenv "NIX_STORE_DIR") canonicalize-path)
72       %storedir))
74 (define %state-directory
75   ;; This must match `NIX_STATE_DIR' as defined in `nix/local.mk'.
76   (or (getenv "GUIX_STATE_DIRECTORY")
77       (string-append %localstatedir "/guix")))
79 (define %store-database-directory
80   (or (getenv "GUIX_DATABASE_DIRECTORY")
81       (string-append %state-directory "/db")))
83 (define %config-directory
84   ;; This must match `GUIX_CONFIGURATION_DIRECTORY' as defined in `nix/local.mk'.
85   (or (getenv "GUIX_CONFIGURATION_DIRECTORY")
86       (string-append %sysconfdir "/guix")))
88 (define %system
89   "@guix_system@")
91 (define %libz
92   "@LIBZ@")
94 (define %liblz
95   "@LIBLZ@")
97 (define %gzip
98   "@GZIP@")
100 (define %bzip2
101   "@BZIP2@")
103 (define %xz
104   "@XZ@")
106 ;;; config.scm ends here