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:
m-mattn-go-sqlite3: Move to golang-xyz....Sharlatan Hellseher 2024-02-18gnu: Add snapper....Nicolas Graves 2024-02-13gnu: go-golang-org-x-net: Move to golang-build....Sharlatan Hellseher 2024-02-09gnu: bcachefs-tools: Restyle format....Ahmad Draidi 2024-02-09gnu: bcachefs-tools: Update to 1.4.1....Ahmad Draidi 2024-01-28gnu: go-github-com-aperturerobotics-jacobsa-crypto: Move to (gnu packages gol......Sharlatan Hellseher 2023-12-29gnu: Add Sirikali....Aaron Covrig 2023-12-18gnu: zfs: Update to 2.1.14....antlers 2023-10-22gnu: go-github-com-jacobsa-oglemock: Move to (gnu packages golang-check)...Sharlatan Hellseher 2023-09-24gnu: bcachefs-tools: Restore mount.bcachefs shell script version....Tobias Geerinckx-Rice 2023-09-24gnu: bcachefs-tools: Remove obsolete phase....Tobias Geerinckx-Rice 2023-09-24gnu: bcachefs-tools: Update to 1.2-0.1e35840....Tobias Geerinckx-Rice 2023-09-24Revert "gnu: bcachefs-tools: Restyle format."...Tobias Geerinckx-Rice 2023-09-25gnu: bcachefs-tools: Restyle format....Ahmad Draidi 2023-09-25gnu: bcachefs-tools: Update to 1.2....Ahmad Draidi 2023-09-10gnu: fsarchiver: Update to 0.8.7....Tobias Geerinckx-Rice 2023-09-10gnu: fuse-overlayfs: Update to 1.13....Tobias Geerinckx-Rice 2023-09-10gnu: exfat-utils: Update to 1.4.0....Tobias Geerinckx-Rice 2023-09-10gnu: exfatprogs: Update to 1.2.1....Tobias Geerinckx-Rice 2023-08-20gnu: dbxfs: Fix package....Efraim Flashner 2023-08-14gnu: dbxfs: Don't check for updates....Efraim Flashner