Merge branch 'gtk-im-modules'
[jackhill/guix/guix.git] / emacs / guix-config.el.in
1 ;;; guix-config.el --- Compile-time configuration of Guix.
2
3 ;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
4 ;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
5
6 ;; This file is part of GNU Guix.
7
8 ;; GNU Guix is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
12
13 ;; GNU Guix is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
17
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 ;;; Code:
22
23 (defconst guix-config-name "@PACKAGE_NAME@"
24 "Guix full name.")
25
26 (defconst guix-config-version "@PACKAGE_VERSION@"
27 "Guix version.")
28
29 (defconst guix-config-emacs-interface-directory
30 (replace-regexp-in-string "${prefix}" "@prefix@" "@emacsuidir@"))
31
32 (defconst guix-config-state-directory
33 ;; This must match `NIX_STATE_DIR' as defined in `nix/local.mk'.
34 (or (getenv "NIX_STATE_DIR") "@guix_localstatedir@/guix"))
35
36 (defconst guix-config-guile-program "@GUILE@"
37 "Name of the 'guile' executable defined at configure time.")
38
39 (defconst guix-config-dot-program "@DOT_USER_PROGRAM@"
40 "Name of the 'dot' executable defined at configure time.")
41
42 (provide 'guix-config)
43
44 ;;; guix-config.el ends here