aboutsummaryrefslogtreecommitdiff
#!@abs_top_builddir@/guile \
--no-auto-compile -e main -s
!#
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
;;;
;;; 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
;;; 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
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;; IMPORTANT: We must avoid loading any modules from Guix here,
;; because we need to adjust the guile load paths first.
;; It's okay to import modules from core Guile though.

(define-syntax-rule (push! elt v) (set! v (cons elt v)))

(define (augment-load-paths!)
  ;; Add installed modules to load-path.
  (push! "@guilemoduledir@" %load-path)
  (push! "@guileobjectdir@" %load-compiled-path))

(define* (main #:optional (args (command-line)))
  (unless (getenv "GUIX_UNINSTALLED")
    (augment-load-paths!))

  (let ((guix-main (module-ref (resolve-interface '(guix ui))
                               'guix-main)))
    (bindtextdomain "guix" "@localedir@")
    (bindtextdomain "guix-packages" "@localedir@")
    ;; XXX: It would be more convenient to change it to:
    ;;   (exit (apply guix-main (command-line)))
    ;; but since the 'guix' command is not updated by 'guix pull', we cannot
    ;; really do it now.
    (apply guix-main args)))

;;; Local Variables:
;;; mode: scheme
;;; End:
on the stack....Efraim Flashner 2017-08-05Revert "daemon: Ensure proper alignment on the stack."...Mark H Weaver 2017-05-30daemon: Report hash mismatches in a cleaner way....Ludovic Courtès 2017-02-20daemon: Ensure proper alignment on the stack....Efraim Flashner 2017-01-11daemon: Allow check builds of 'builtin:download' derivations....Ludovic Courtès 2016-12-29daemon: Allow fixed-output derivation builds with TMPDIR set....Ludovic Courtès 2016-12-09daemon: Set ownership of kept build directories to the calling user....Hartmut Goebel 2016-11-16daemon: Add "builtin:download" derivation builder....Ludovic Courtès 2016-05-31daemon: Fix typo....Ludovic Courtès 2016-05-31daemon: rounds: Keep the differing output if -K is given....Eelco Dolstra 2016-05-31daemon: check: Keep the differing output if -K is given....Eelco Dolstra 2016-05-31daemon: check: Fix "failed to produce output path"....Eelco Dolstra 2016-05-31daemon: check: Fix assertion failure when some outputs are missing....Eelco Dolstra 2016-05-31daemon: When repairing, rebuild if there is no substituter.Eelco Dolstra 2016-05-31daemon: Fix --repair failure on multiple-output derivations....Eelco Dolstra 2016-05-31daemon: Handle /tmp being a symlink....Eelco Dolstra 2015-12-30daemon: Build in /tmp/guix-build-*....Ludovic Courtès 2015-12-13daemon: Better distinguish build statuses....Eelco Dolstra 2015-12-09daemon: Use deterministic $TMPDIR in chroot....Eelco Dolstra 2015-12-08daemon: Allow builds to be repeated....Eelco Dolstra 2015-12-02daemon: Filter build-chroot-dirs entries that conflict with derivation outputs....Eelco Dolstra 2015-12-02daemon: Prevent .chroot from being GC'ed when using LocalStore::buildDerivati......Eelco Dolstra 2015-11-01Remove unneeded HAVE_UNSHARE....Manolis Ragkousis 2015-07-03Merge branch 'nix'....Ludovic Courtès 2015-06-03Merge branch 'nix'....Ludovic Courtès 2015-05-19Merge branch 'nix'....Ludovic Courtès 2015-05-19Revert "daemon: Fix possible use-after-free."...Ludovic Courtès 2015-05-11daemon: Fix possible use-after-free....Ludovic Courtès 2015-01-04Merge commit a1dd396cc02922372314c35c8035a38bfeea08df of branch 'nix'.Ludovic Courtès 2014-12-19Merge branch 'nix' into 'master'.Ludovic Courtès