You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
2.6 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <>
;;; Copyright © 2017 Caleb Ristvedt <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; 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.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (guix config)
#:export (%guix-package-name
;;; Commentary:
;;; Compile-time configuration of Guix. When adding a substitution variable
;;; here, make sure to equip (guix scripts pull) to substitute it.
;;; Code:
(define %guix-package-name
(define %guix-version
(define %guix-bug-report-address
(define %guix-home-page-url
(define %storedir
(define %localstatedir
(define %sysconfdir
(define %store-directory
(or (and=> (getenv "NIX_STORE_DIR") canonicalize-path)
(define %state-directory
;; This must match `NIX_STATE_DIR' as defined in `nix/'.
(or (getenv "NIX_STATE_DIR")
(string-append %localstatedir "/guix")))
(define %store-database-directory
(or (getenv "NIX_DB_DIR")
(string-append %state-directory "/db")))
(define %config-directory
;; This must match `GUIX_CONFIGURATION_DIRECTORY' as defined in `nix/'.
(string-append %sysconfdir "/guix")))
(define %system
(define %libgcrypt
(define %libz
(define %gzip
(define %bzip2
(define %xz
;;; config.scm ends here