unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: jgart <jgart@dismail.de>, Guix Help <help-guix@gnu.org>
Subject: Re: guix refresh only python-*
Date: Sun, 20 Nov 2022 23:44:48 +0100	[thread overview]
Message-ID: <86zgcljlen.fsf@gmail.com> (raw)
In-Reply-To: <20221120125648.GB16339@dismail.de>

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	other threads:[~2022-11-20 22:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20 18:56 guix refresh only python-* jgart
2022-11-20 22:44 ` zimoun [this message]
2022-11-21  7:21   ` (
2022-11-21 10:39     ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zgcljlen.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).