diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-20 09:57:08 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-21 11:48:30 +0100 |
commit | a2e661e95f8ab2fcb7741198234395b367a794c1 (patch) | |
tree | 830c39623fae36400c6e90d27cfbe53c05627a43 /tests/guix-pack.sh | |
parent | 59cd751852d1acab6eae6da0488d15cc743c2cc4 (diff) | |
download | patches-a2e661e95f8ab2fcb7741198234395b367a794c1.tar patches-a2e661e95f8ab2fcb7741198234395b367a794c1.tar.gz |
pack: Add "--derivation".
* guix/scripts/pack.scm (%options, show-help): Add "--derivation".
(guix-pack): Honor it.
* tests/guix-pack.sh: Test it.
* doc/guix.texi (Invoking guix pack): Document it.
Diffstat (limited to 'tests/guix-pack.sh')
-rw-r--r-- | tests/guix-pack.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-pack.sh b/tests/guix-pack.sh index 0feae6d1e8..cf4e4ca4f9 100644 --- a/tests/guix-pack.sh +++ b/tests/guix-pack.sh @@ -36,6 +36,10 @@ export GUIX_BUILD_OPTIONS test_directory="`mktemp -d`" trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT +# Compute the derivation of a pack. +drv="`guix pack coreutils -d --no-grafts`" +guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`" + # Build a tarball with no compression. guix pack --compression=none --bootstrap guile-bootstrap |