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) | |
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 0feae6d1e83..cf4e4ca4f9b 100644 --- a/tests/guix-pack.sh +++ b/tests/guix-pack.sh | |||
| @@ -36,6 +36,10 @@ export GUIX_BUILD_OPTIONS | |||
| 36 | test_directory="`mktemp -d`" | 36 | test_directory="`mktemp -d`" |
| 37 | trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT | 37 | trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT |
| 38 | 38 | ||
| 39 | # Compute the derivation of a pack. | ||
| 40 | drv="`guix pack coreutils -d --no-grafts`" | ||
| 41 | guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`" | ||
| 42 | |||
| 39 | # Build a tarball with no compression. | 43 | # Build a tarball with no compression. |
| 40 | guix pack --compression=none --bootstrap guile-bootstrap | 44 | guix pack --compression=none --bootstrap guile-bootstrap |
| 41 | 45 | ||
