Commit | Line | Data |
---|---|---|
233e7676 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> | |
00e219d1 | 3 | ;;; |
233e7676 | 4 | ;;; This file is part of GNU Guix. |
00e219d1 | 5 | ;;; |
233e7676 | 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
00e219d1 LC |
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 | ;;; | |
233e7676 | 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
00e219d1 LC |
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 | |
233e7676 | 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
00e219d1 LC |
18 | |
19 | (define-module (guix config) | |
20 | #:export (%guix-package-name | |
21 | %guix-version | |
22 | %guix-bug-report-address | |
3441e164 | 23 | %guix-home-page-url |
d8eea3d2 LC |
24 | %store-directory |
25 | %state-directory | |
26 | %system | |
00e219d1 LC |
27 | %libgcrypt |
28 | %nixpkgs | |
29 | %nix-instantiate)) | |
30 | ||
31 | ;;; Commentary: | |
32 | ;;; | |
33 | ;;; Compile-time configuration of Guix. | |
34 | ;;; | |
35 | ;;; Code: | |
36 | ||
37 | (define %guix-package-name | |
38 | "@PACKAGE_NAME@") | |
39 | ||
40 | (define %guix-version | |
41 | "@PACKAGE_VERSION@") | |
42 | ||
43 | (define %guix-bug-report-address | |
44 | "@PACKAGE_BUGREPORT@") | |
45 | ||
3441e164 LC |
46 | (define %guix-home-page-url |
47 | "@PACKAGE_URL@") | |
48 | ||
d8eea3d2 LC |
49 | (define %store-directory |
50 | "@storedir@") | |
51 | ||
52 | (define %state-directory | |
7f4f0651 LC |
53 | ;; This must match `NIX_STATE_DIR' as defined in `daemon.am'. |
54 | "@guix_localstatedir@/nix") | |
d8eea3d2 LC |
55 | |
56 | (define %system | |
57 | "@guix_system@") | |
58 | ||
00e219d1 LC |
59 | (define %libgcrypt |
60 | "@LIBGCRYPT@") | |
61 | ||
62 | (define %nixpkgs | |
63 | (if (string=? "@NIXPKGS@" "") | |
64 | #f | |
65 | "@NIXPKGS@")) | |
66 | ||
67 | (define %nix-instantiate | |
68 | "@NIX_INSTANTIATE@") | |
69 | ||
70 | ;;; config.scm ends here |