help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix refresh only python-*


From: zimoun
Subject: Re: guix refresh only python-*
Date: Sun, 20 Nov 2022 23:44:48 +0100

Hi,

On Sun, 20 Nov 2022 at 12:56, jgart <jgart@dismail.de> wrote:
> hi, how can I see only what python packages can be updated with guix refresh?

   guix refresh -m python-packages.scm -u

where python-packages.scm is adapted from [1], copied and pasted here:

--8<---------------cut here---------------start------------->8---
(use-modules (gnu packages)
             (guix build-system pyproject)
             (guix build-system python)
             (guix packages))

(fold-packages (lambda (pkg count)
                 (+ 1 count))
               0
               #:select?
               (lambda (pkg)
                 (and (not (hidden-package? pkg))
                      (member (package-build-system pkg)
                              (list pyproject-build-system
                                    python-build-system)))))
--8<---------------cut here---------------end--------------->8---

Instead of

               (lambda (pkg count)
                 (+ 1 count))

something like

               (lambda (pkg python-packages)
                 (cons pkg python-packages))

and the ’0’ initial value replaced by the empty list ’()’.

Here you get all the python packages.  Then, you just return a manifest,
something like,

        (manifest
         (map package->manifest-entry
              (fold-packages …
                                                          )))

1: https://yhetil.org/guix/COD5P19YLOOM.286HAM1U8M8MZ@guix-framework>

Cheers,
simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]