bug-guix
[Top][All Lists]
Advanced

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

bug#33867: Folding with origin-uri fails for inherited packages


From: Mathieu Othacehe
Subject: bug#33867: Folding with origin-uri fails for inherited packages
Date: Tue, 25 Dec 2018 13:01:15 +0100
User-agent: mu4e 1.0; emacs 26.1

Hi,

> Is this a bug?

No it's not, the following snippet should work better.

--8<---------------cut here---------------start------------->8---
(fold-packages
 (lambda (package lst)
   (if (string-prefix? "python" (package-name package))
       (cons (and=> (package-source package)
                    (lambda (source)
                      (origin-uri source)))
             lst)
     lst))
 '())
--8<---------------cut here---------------end--------------->8---

Mathieu





reply via email to

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