summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <mail@ambrevar.xyz>2020-05-26 15:40:41 +0200
committerGuix Patches Tester <>2020-05-26 14:42:06 +0100
commit614b9795247bb244f2bf30be55055c2b4dbd0f9a (patch)
tree7aee1f76ca7847b829b94e7c946110261d1d4448
parente612df7146b6105adc4282574c0ccb5b7d17c1a8 (diff)
downloadguix-patches-614b9795247bb244f2bf30be55055c2b4dbd0f9a.tar
guix-patches-614b9795247bb244f2bf30be55055c2b4dbd0f9a.tar.gz
doc: Add example to calculate the size a system.
* doc/guix.texi (Invoking `guix size'): Add guix size example for store item.
-rw-r--r--doc/guix.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 4dbbf96db9..0c4067b52e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10110,6 +10110,13 @@ libraries. (That libc and GCC's libraries represent a large fraction of
the closure is not a problem @i{per se} because they are always available
on the system anyway.)
+Since the command also accepts store file names, assessing the size of
+a build result is straightforward:
+
+@example
+guix size $(guix system build config.scm)
+@end example
+
When the package(s) passed to @command{guix size} are available in the
store@footnote{More precisely, @command{guix size} looks for the
@emph{ungrafted} variant of the given package(s), as returned by