aboutsummaryrefslogtreecommitdiff
path: root/etc/source-manifest.scm
blob: f96a5da6f712cfb1f406e43651aeb72808ca90a7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2021 Ludovic Courtès <ludo@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/>.

;;; This file returns a manifest containing origins of all the packages.  The
;;; main purpose is to allow continuous integration services to keep upstream
;;; source code around.  It can also be passed to 'guix weather -m'.

(use-modules (srfi srfi-1) (srfi srfi-26)
             (ice-9 match) (ice-9 vlist)
             (guix packages) (guix profiles)
             (gnu packages))

(define (all-packages)
  "Return the list of all the packages, public or private, omitting only
superseded packages."
  (fold-packages (lambda (package lst)
                   (match (package-replacement package)
                     (#f (cons package lst))
                     (replacement
                      (append (list replacement package) lst))))
                 '()
                 #:select? (negate package-superseded)))

(define (upstream-origin source)
  "Return SOURCE without any patches or snippet."
  (origin (inherit source)
          (snippet #f) (patches '())))

(define (all-origins)
  "Return the list of origins referred to by all the packages."
  (let loop ((packages (all-packages))
             (origins  '())
             (visited   vlist-null))
    (match packages
      ((head . tail)
       (let ((new (remove (cut vhash-assq <> visited)
                          (package-direct-sources head))))
         (loop tail (append new origins)
               (fold (cut vhash-consq <> #t <>)
                     visited new))))
      (()
       origins))))

;; Return a manifest containing all the origins.
(manifest (map (lambda (origin)
                 (manifest-entry
                   (name (or (origin-actual-file-name origin)
                             "origin"))
                   (version "0")
                   (item (upstream-origin origin))))
               (all-origins)))
-16home: services: znc: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16home: services: kodi: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16home: services: ssh-agent: Remove host-side use of (shepherd support)....Ludovic Courtès 2023-03-16gnu: home: services: Add home-kodi-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16gnu: home: services: Add home-znc-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16gnu: home: services: Add home-ssh-agent-service-type....Jan (janneke) Nieuwenhuizen 2023-03-16home: services: Add home-unclutter-service-type....conses 2023-03-05home: services: Add 'pulseaudio-rtp-sink' and 'pulseaudio-rtp-source'....Ludovic Courtès 2023-01-31home: services: fontutils: Add service value....Giacomo Leidi 2023-01-09home: environment-variables: Fix escaping....Andrew Tropin 2023-01-09home: environment-variables: Return support for file-likes and gexps....Andrew Tropin 2023-01-05home: shells: Do not escape backslashes in single-quoted strings....Ludovic Courtès 2023-01-05system: Define default 'PS1' in /etc/bashrc rather than ~/.bashrc....Ludovic Courtès 2023-01-05system, home: Factorize default '.bashrc'....Ludovic Courtès 2023-01-05home: services: environment-variables: Add support for literal strings....Ludovic Courtès 2023-01-03guix: Fix typos....jman 2022-12-23home: xdg: Add with-imported-modules to xdg activation script....Andrew Tropin 2022-12-19home: xdg: Make it possible to extend user-directories service....Andrew Tropin 2022-12-02home: services: Use 'match-record' instead of 'match'....Ludovic Courtès 2022-12-01home: xdg: Export xdg-base/user-directories getters....Andrew Tropin 2022-11-18home: services: redshift: Add 'configuration' action....Ludovic Courtès 2022-11-17Fix problems initially introduced in commit 543d971ed2, now reinstated....Maxim Cournoyer 2022-11-17Revert "services: configuration: Revert to a working ‘guix home’."...Maxim Cournoyer 2022-11-13services: configuration: Revert to a working ‘guix home’....Tobias Geerinckx-Rice 2022-11-15services: mcron: Add log? and log-format fields to mcron-configuration....Maxim Cournoyer 2022-10-17home: dbus: Inherit environment variables from shepherd....Andrew Tropin 2022-10-17home: dbus: Remove unecessary list call....Andrew Tropin 2022-10-14home: home-dbus-service-type: Fix make-forkexec-constructor call....( 2022-10-13gnu: home: Add home-dbus-service-type....( via Guix-patches via 2022-10-04home: Add home-batsignal-service-type....( via Guix-patches via 2022-09-14home: shepherd: Add daemonize? option to configuration....Andrew Tropin