2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2014-01-08 15:12:55 -05:00
|
|
|
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
|
2012-11-03 16:07:52 -04:00
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-11-03 16:07:52 -04:00
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-11-03 16:07:52 -04:00
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-11-03 16:07:52 -04:00
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
2013-01-05 18:47:50 -05:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-11-03 16:07:52 -04:00
|
|
|
|
|
|
|
(define-module (guix config)
|
|
|
|
#:export (%guix-package-name
|
|
|
|
%guix-version
|
|
|
|
%guix-bug-report-address
|
2013-01-05 09:55:47 -05:00
|
|
|
%guix-home-page-url
|
2012-12-05 17:02:47 -05:00
|
|
|
%store-directory
|
|
|
|
%state-directory
|
2013-12-29 09:52:50 -05:00
|
|
|
%config-directory
|
2012-12-05 17:02:47 -05:00
|
|
|
%system
|
2012-11-03 16:07:52 -04:00
|
|
|
%libgcrypt
|
|
|
|
%nixpkgs
|
2013-04-12 11:30:27 -04:00
|
|
|
%nix-instantiate
|
|
|
|
%gzip
|
|
|
|
%bzip2
|
|
|
|
%xz))
|
2012-11-03 16:07:52 -04:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;;;
|
|
|
|
;;; Compile-time configuration of Guix.
|
|
|
|
;;;
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(define %guix-package-name
|
|
|
|
"@PACKAGE_NAME@")
|
|
|
|
|
|
|
|
(define %guix-version
|
|
|
|
"@PACKAGE_VERSION@")
|
|
|
|
|
|
|
|
(define %guix-bug-report-address
|
|
|
|
"@PACKAGE_BUGREPORT@")
|
|
|
|
|
2013-01-05 09:55:47 -05:00
|
|
|
(define %guix-home-page-url
|
|
|
|
"@PACKAGE_URL@")
|
|
|
|
|
2012-12-05 17:02:47 -05:00
|
|
|
(define %store-directory
|
|
|
|
"@storedir@")
|
|
|
|
|
|
|
|
(define %state-directory
|
2012-12-13 17:53:37 -05:00
|
|
|
;; This must match `NIX_STATE_DIR' as defined in `daemon.am'.
|
2014-01-08 15:12:55 -05:00
|
|
|
(or (getenv "NIX_STATE_DIR") "@guix_localstatedir@/nix"))
|
2012-12-05 17:02:47 -05:00
|
|
|
|
2013-12-29 09:52:50 -05:00
|
|
|
(define %config-directory
|
|
|
|
;; This must match `NIX_CONF_DIR' as defined in `daemon.am'.
|
|
|
|
(or (getenv "NIX_CONF_DIR") "@guix_sysconfdir@/guix"))
|
|
|
|
|
2012-12-05 17:02:47 -05:00
|
|
|
(define %system
|
|
|
|
"@guix_system@")
|
|
|
|
|
2012-11-03 16:07:52 -04:00
|
|
|
(define %libgcrypt
|
|
|
|
"@LIBGCRYPT@")
|
|
|
|
|
|
|
|
(define %nixpkgs
|
|
|
|
(if (string=? "@NIXPKGS@" "")
|
|
|
|
#f
|
|
|
|
"@NIXPKGS@"))
|
|
|
|
|
|
|
|
(define %nix-instantiate
|
|
|
|
"@NIX_INSTANTIATE@")
|
|
|
|
|
2013-04-12 11:30:27 -04:00
|
|
|
(define %gzip
|
|
|
|
"@GZIP@")
|
|
|
|
|
|
|
|
(define %bzip2
|
|
|
|
"@BZIP2@")
|
|
|
|
|
|
|
|
(define %xz
|
|
|
|
"@XZ@")
|
|
|
|
|
2012-11-03 16:07:52 -04:00
|
|
|
;;; config.scm ends here
|