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:
an>Revert "news: Add entry for the Guix survey."John Kehayias This reverts commit cd26d76fedb7ab13ad91bd5dcfce119892b8e62e. See discussion at <https://issues.guix.gnu.org/74549>. Let's keep news.scm to direct user impact/software (or at least not set a different precedent here). Change-Id: I1a72474ad3c79bc59100979f35f0216f68f4e88e 2024-12-03etc: teams: Add entry for Janneke Nieuwenhuizen.Janneke Nieuwenhuizen * etc/teams.scm.in ("Janneke Nieuwenhuizen"): New member. Change-Id: Ia666772ae681cd869ffce84da65078c9174fa110 2024-12-03teams: Add hurd team.Janneke Nieuwenhuizen * etc/teams.scm (hurd): New team. Change-Id: Id3b4d8ac3eed8c7773a45d0fe8a17154c6427aa1 2024-12-02Merge remote-tracking branch 'origin/rust-team'Efraim Flashner Change-Id: I6d5c28252f060eeb69eb02fd281e7268bb885b29 2024-12-02maint: Run ‘etc/upgrade-manifest.scm’ in a UTF-8 locale.Ludovic Courtès * etc/upgrade-manifest.scm: Add calls to ‘setlocale’ to force a UTF-8 locale. Change-Id: Ia567a1e08124d9eab7fb32f3363681a8f37431b1 2024-12-01etc: Add upgrade manifest.Ludovic Courtès * guix/scripts/build.scm (dependents): Export. * etc/upgrade-manifest.scm: New file. * Makefile.am (EXTRA_DIST): Add it. Change-Id: I1b2a2ebd09e559c68da9f25772bf33caacb4c031 2024-12-01packages: Factorize ‘all-packages’.Ludovic Courtès * gnu/packages.scm (all-packages): New procedure. * etc/source-manifest.scm (all-packages): Remove. * guix/scripts/graph.scm (all-packages): Remove. * guix/scripts/refresh.scm (all-packages): Remove. * guix/scripts/weather.scm (all-packages): Remove. Change-Id: I6072952c4b877b541037ce86402cfb7744eeb0a0