[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some general guix questions
From: |
Pierre Neidhardt |
Subject: |
Re: Some general guix questions |
Date: |
Tue, 22 Jan 2019 11:28:57 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
I realized that something was missing from the above manifest generators: the
outputs.
My shot at it:
--8<---------------cut here---------------start------------->8---
(use-modules (guix profiles)
(ice-9 match)
(ice-9 pretty-print))
(match (command-line)
((_ where)
(pretty-print
`(specifications->manifest
',(map (lambda (entry)
(let ((out (manifest-entry-output entry)))
(if (string= out "out")
(manifest-entry-name entry)
(format #f "~a:~a"
(manifest-entry-name entry)
(manifest-entry-output entry)))))
(manifest-entries (profile-manifest where))))))
(_ (error "Please provide the path to a Guix profile.")))
--8<---------------cut here---------------end--------------->8---
Unlike George, I'm not sorting the entry, so the latest package will appear
first in the manifest. I haven't made up my mind yet as to which one is more
useful, sorted or not.
Thoughts?
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
Re: Some general guix questions, George Clemmer, 2019/01/08
Re: Some general guix questions, Tonton, 2019/01/08