[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47163] Using package transformations declaratively (was: [bug#47163
From: |
Xinglu Chen |
Subject: |
[bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.) |
Date: |
Tue, 16 Mar 2021 19:35:41 +0100 |
On Tue, Mar 16 2021, zimoun wrote:
>> I really like package transformations but is there a way to use specify
>> them with Guile so I can use them with `guix home`[1] or in manifests?
>
> There is several ways to have package transformations at the manifest
> level. One is:
>
> --8<---------------cut here---------------start------------->8---
> (use-modules (guix transformations))
>
> (define transform1
> (options->transformation
> '((with-c-toolchain . "hello=gcc-toolchain@8"))))
>
> (packages->manifest
> (list (transform1 (specification->package "hello"))))
> --8<---------------cut here---------------end--------------->8---
Cool, thanks for the help.
- [bug#47163] [PATCH] refresh: Add '--installed' option., Xinglu Chen, 2021/03/15
- [bug#47163] [PATCH] refresh: Add '--installed' option., Ludovic Courtès, 2021/03/15
- [bug#47163] [PATCH] refresh: Add '--installed' option., Xinglu Chen, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.), Xinglu Chen, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.), zimoun, 2021/03/16
- [bug#47163] Using package transformations declaratively (was: [bug#47163] [PATCH] refresh: Add '--installed' option.),
Xinglu Chen <=
- [bug#47163] Using package transformations declaratively, Ludovic Courtès, 2021/03/17
[bug#47163] [PATCH] doc: Add snippet for running 'guix refresh' on installed packages, Xinglu Chen, 2021/03/16
[bug#47213] [PATCH v2] doc: Add snippet for running 'guix refresh' on installed, Xinglu Chen, 2021/03/17
bug#47163: [PATCH] refresh: Add '--installed' option., Xinglu Chen, 2021/03/26