diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-09-24 22:13:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-10-02 23:28:09 +0200 |
commit | ad54a73bb820a685f242976a86be63931789fa97 (patch) | |
tree | 18b1b167bb165360b2b4799565330fca9ef9b689 /tests/guix-package-aliases.sh | |
parent | 63e5ef402b66950b8fd24ba3808c022084cdb955 (diff) | |
download | guix-ad54a73bb820a685f242976a86be63931789fa97.tar guix-ad54a73bb820a685f242976a86be63931789fa97.tar.gz |
guix build: Record package transformations in manifest entries.
With this change, package transformation options used while building a
manifest are saved in the metadata of the manifest entries.
* guix/scripts/build.scm (transformation-procedure): New procedure.
(options->transformation)[applicable]: Use it. Change to a list of
key/value/proc tuples instead of key/proc pairs.
[package-with-transformation-properties, tagged-object]: New
procedures. Use them.
(package-transformations, manifest-entry-with-transformations): New
procedures.
* guix/scripts/pack.scm (guix-pack)[with-transformations]: New
procedure.
Use it.
* guix/scripts/package.scm (process-actions)[transform-entry]: Use it.
* tests/guix-package-aliases.sh: Add test.
Diffstat (limited to 'tests/guix-package-aliases.sh')
-rw-r--r-- | tests/guix-package-aliases.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-package-aliases.sh b/tests/guix-package-aliases.sh index e4ddace057..311838b768 100644 --- a/tests/guix-package-aliases.sh +++ b/tests/guix-package-aliases.sh @@ -39,6 +39,12 @@ test -x "$profile/bin/guile" ! guix install -r guile-bootstrap -p "$profile" --bootstrap test -x "$profile/bin/guile" +# Use a package transformation option and make sure it's recorded. +guix install --bootstrap guile-bootstrap -p "$profile" \ + --with-input=libreoffice=inkscape +test -x "$profile/bin/guile" +grep "libreoffice=inkscape" "$profile/manifest" + guix upgrade --version guix upgrade -n guix upgrade gui.e -n |