summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-11-25 14:30:28 +0100
committerLudovic Courtès <ludo@gnu.org>2024-12-01 20:14:15 +0100
commit4b5dae8defe4c0d5e98b5ce6abba853007485f23 (patch)
treeaa400c2eb90fc7a7d929f2c25c6daea00705133b /etc
parenta6334223719bf6b2695d2dc0e75dbfe69e901bd7 (diff)
packages: Factorize ‘all-packages’.
* 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
Diffstat (limited to 'etc')
-rw-r--r--etc/source-manifest.scm13
1 files changed, 1 insertions, 12 deletions
diff --git a/etc/source-manifest.scm b/etc/source-manifest.scm
index f96a5da6f71..3e1ae079592 100644
--- a/etc/source-manifest.scm
+++ b/etc/source-manifest.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2021, 2024 Ludovic Courtès <ludo@gnu.org>
3;;; 3;;;
4;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
5;;; 5;;;
@@ -25,17 +25,6 @@
25 (guix packages) (guix profiles) 25 (guix packages) (guix profiles)
26 (gnu packages)) 26 (gnu packages))
27 27
28(define (all-packages)
29 "Return the list of all the packages, public or private, omitting only
30superseded packages."
31 (fold-packages (lambda (package lst)
32 (match (package-replacement package)
33 (#f (cons package lst))
34 (replacement
35 (append (list replacement package) lst))))
36 '()
37 #:select? (negate package-superseded)))
38
39(define (upstream-origin source) 28(define (upstream-origin source)
40 "Return SOURCE without any patches or snippet." 29 "Return SOURCE without any patches or snippet."
41 (origin (inherit source) 30 (origin (inherit source)