From patchwork Tue May 26 13:40:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Neidhardt X-Patchwork-Id: 22385 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1799327BBE3; Tue, 26 May 2020 14:41:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C1AAD27BBE1 for ; Tue, 26 May 2020 14:41:22 +0100 (BST) Received: from localhost ([::1]:42390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdZpa-0003vE-2s for patchwork@mira.cbaines.net; Tue, 26 May 2020 09:41:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdZpG-0003tZ-RF for guix-patches@gnu.org; Tue, 26 May 2020 09:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdZpG-00087u-Hx for guix-patches@gnu.org; Tue, 26 May 2020 09:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdZpG-0000MY-Gg for guix-patches@gnu.org; Tue, 26 May 2020 09:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41539] [PATCH 2/2] doc: Add example to calculate the size a system. References: <20200526133830.4438-1-mail@ambrevar.xyz> In-Reply-To: <20200526133830.4438-1-mail@ambrevar.xyz> Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 May 2020 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41539@debbugs.gnu.org Received: via spool by 41539-submit@debbugs.gnu.org id=B41539.15905004591378 (code B ref 41539); Tue, 26 May 2020 13:41:02 +0000 Received: (at 41539) by debbugs.gnu.org; 26 May 2020 13:40:59 +0000 Received: from localhost ([127.0.0.1]:44440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdZpA-0000M7-1y for submit@debbugs.gnu.org; Tue, 26 May 2020 09:40:59 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:50391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdZp7-0000Ls-Qx for 41539@debbugs.gnu.org; Tue, 26 May 2020 09:40:54 -0400 Received: from localhost.localdomain (mqu44-1-78-248-96-161.fbx.proxad.net [78.248.96.161]) (Authenticated sender: mail@ambrevar.xyz) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 0F724200002 for <41539@debbugs.gnu.org>; Tue, 26 May 2020 13:40:46 +0000 (UTC) From: Pierre Neidhardt Date: Tue, 26 May 2020 15:40:41 +0200 Message-Id: <20200526134041.6014-1-mail@ambrevar.xyz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (Invoking `guix size'): Add guix size example for store item. --- doc/guix.texi | 7 +++++++ 1 file changed, 7 insertions(+) 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