From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42675) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oMI-0002HV-It for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oMH-0004Wo-CH for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oMH-0004Va-7m for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oMH-0006dm-4g for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:09 -0400 Subject: [bug#36477] [PATCH v3 30/48] packages: Set outputs field as thunked. Resent-Message-ID: From: Mathieu Othacehe Date: Mon, 2 Sep 2019 17:33:15 +0200 Message-Id: <20190902153333.11190-31-m.othacehe@gmail.com> In-Reply-To: <20190902153333.11190-1-m.othacehe@gmail.com> References: <20190902153333.11190-1-m.othacehe@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36477@debbugs.gnu.org Cc: Mathieu Othacehe This allows for instance to use %current-target-system to enable/disable some outputs in a package. * guix/packages.scm (): Set outputs field as thunked, (package->bag): adapt make-bag call accordingly. --- guix/packages.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/packages.scm b/guix/packages.scm index ac965acd2f..6889dbf116 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -266,7 +266,7 @@ name of its URI." (default '()) (thunked)) (outputs package-outputs ; list of strings - (default '("out"))) + (default '("out")) (thunked)) ; lists of ; , @@ -1046,7 +1046,7 @@ and return it." #:source source #:inputs (append (inputs self) (propagated-inputs self)) - #:outputs outputs + #:outputs (outputs self) #:native-inputs (native-inputs self) #:arguments (args self)) (raise (if target -- 2.20.1