Hi,

On Sat, 06 Sep 2025 at 00:14, Tomas Volf <[email protected]> wrote:

> guix build -L /home/alexis/my/channel -e '
>   (use-modules (gnu packages) (guix))
>   (fold-packages (lambda (pkg lst)
>                    (if (string-prefix? "/home/alexis/my/channel"
>                                        (location-file (package-location pkg)))
>                        (cons pkg lst)
>                        lst))
>                  (quote ()))'

Well, I do something like that but using a manifest.scm file.

--8<---------------cut here---------------start------------->8---
$ cat manifest.scm
(use-modules (guix packages)
             (guix diagnostics)
             (guix))

(define pkgs
 (fold-packages (lambda (pkg lst)
                   (if (string-prefix? "guix-science"
                                       (location-file
                                        (package-location pkg)))
                       (cons pkg lst)
                       lst))
                 (quote ())))

(packages->manifest pkgs)

$ guix build -L ~/src/guix/guix-science -m manifest.scm -n
--8<---------------cut here---------------end--------------->8---


Hope that helps.

Cheers,
simon

Reply via email to