1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00
Files
guix/manifest.scm
Maxim Cournoyer e66be1b663 manifest.scm: Handle unsupported packages gracefully.
Previously, 'guix shell' on a powerpc64le machine for example would fail with:

  error: package codeberg-cli@0.5.0 does not support powerpc64le-linux

* manifest.scm: Filter out unsupported packages.

Change-Id: Ib47b80a4ba4ffa99a0834ef45493fe70ceb1d534
2026-02-18 17:51:19 +09:00

58 lines
2.1 KiB
Scheme

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2022, 2024 Janneke Nieuwenhuizen <janneke@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/>.
;; GNU Guix development manifest. To create development environment, run
;;
;; guix shell
;;
;; or something like
;;
;; guix shell --pure -m manifest.scm hello ...
(use-modules (guix packages))
(concatenate-manifests
(list (package->development-manifest
(let ((guix (specification->package "guix")))
(package/inherit guix
;; Replace with non-minimal Graphviz for PDF support.
(native-inputs (modify-inputs (package-native-inputs guix)
(replace "graphviz"
(specification->package "graphviz")))))))
;; Extra packages used by unit tests.
(specifications->manifest (list "gnupg"))
;; Packages needed for 'make dist' and 'make distcheck'.
(specifications->manifest
(list "imagemagick"
"perl"))
;; Useful extras for patches submission.
(packages->manifest
(filter supported-package? ;rust is not yet available everywhere
(map specification->package
(list "codeberg-cli"
"git"
"nss-certs"))))
;; For installer
(specifications->manifest
(list "guile-newt"
"guile-parted"
"guile-webutils"))))