From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2AQJLkbVVWCTaQAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 10:58:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kOnoKUbVVWCNDgAA1q6Kng (envelope-from ) for ; Sat, 20 Mar 2021 10:58:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D46B6179F9 for ; Sat, 20 Mar 2021 11:58:13 +0100 (CET) Received: from localhost ([::1]:57340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNZJ6-0008IX-Dn for larch@yhetil.org; Sat, 20 Mar 2021 06:58:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNZIq-0008IO-RD for help-guix@gnu.org; Sat, 20 Mar 2021 06:57:57 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:51960 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNZIp-000469-2h; Sat, 20 Mar 2021 06:57:56 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1616237869; bh=Gqz+AkxIUNf6P6jNO45vwv415NwCcwjYMHveLhh0SJ8=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=F7UhJbJ+K6ujwbG9tDKQtdKrbfwJMVnmPVi84aMmjjPQf6qutWBV+W4WZoWCH9Dbf 0/InT3m2bUcIs99PpIOrpCxTf6aBYjA0NQmOoA2zFmVtPIT0f5J2BDaU5P8Sk3//RN DhgEW4f/43jWoiHbvVxHxNDHCe/0s9uirpMtwdx0= To: Ludovic =?utf-8?Q?Court=C3=A8s?= , zimoun Subject: Re: Building packages in REPL In-Reply-To: <87h7tx6krr.fsf@gnu.org> References: <86wo3u9mfi.fsf@gmail.com> <86tuyy9kdu.fsf@gmail.com> <87h7tx6krr.fsf@gnu.org> Date: Sat, 20 Mar 2021 11:57:48 +0100 Message-ID: <87eegart1v.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.5, PDS_OTHER_BAD_TLD=1.999, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org, Anthony Quizon Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616237894; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wIuo8Xmt01x673g+J1UitP9xoBQaH+5vUy8KonwSC+M=; b=sGwPMfqKDPsC/d8NSGMdlIWmVXlOVH4CPZx1MEr/8NQipXt2V2RAr7Xad+/0RkljdNYtMR gCCnR1bIyBzmTCQCb7VrLJXOW1F+dhZRF5Ps0kwWBTQqILZ+sFZaHE4rKQgau+JkyI0eku Up1zAV2dDQ3D9CJEcTFa0IriOUOA1i4caReqnUlxIdzSezmqvCBdgDRUjmw3LPLTd6I88S t4ZkPOADJbeYCi9kjiNJdrjIm5cL3y/IuU9VlHUPArg15enpTOs3rIZL+GSh1D4HznchGS C3ixttIWoesf+xxO7KfeWgcXqYkWn4Z/pre1iC43Nx7sO5/U56lo0a9LRLXBdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616237894; a=rsa-sha256; cv=none; b=BWLC0PJNV/G7hrKAX7LGWykw8Se4Mau5ePH8grvLMuLvAY0fED/SfuUSznaEaIVNcznkBC G3fhGR9fjNn1uEwRoM31057sVdvZrKlP4ZoS+qoW2vmqCJOo8rIeL0bxzY4g50MWqrBvtl A570Kn2booH8pRHXeaGTuejXTKm902ksciZRJkjUAIs8Kmi4kQ89cPajTrKQgpqpJfn305 t5rF4OSHELg9OqYfQyEz47GdC9k20HRvUjZ0n1YJHRymBVLhNc1KmcV4/g8t6QnzGTwyex p5E2Cbg3kyhIJ0KKMqK0hInGbX5RTpS2NWaqlxY5qwSMJuq2s878AysGkkHD5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=F7UhJbJ+; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=F7UhJbJ+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: D46B6179F9 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5XvDse08jYj9 On Fri, Jul 24 2020, Ludovic Court=C3=A8s wrote: > (guix scripts) has a high-level =E2=80=98build-package=E2=80=99 procedure= (initially > written for Emacs-Guix) that can be used like this: > > --8<---------------cut here---------------start------------->8--- > $ guix repl > GNU Guile 3.0.4 > Copyright (C) 1995-2020 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guix-user)> ,use(guix) > scheme@(guix-user)> ,use(guix scripts) > scheme@(guix-user)> ,use(gnu packages base) > scheme@(guix-user)> (build-package coreutils) > $1 =3D # > scheme@(guix-user)> ,run-in-store (build-package coreutils) > /gnu/store/yvsd53rkbvy9q8ak6681hai62nm6rf31-coreutils-8.32-debug > /gnu/store/n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils-8.32 > $2 =3D #t > --8<---------------cut here---------------end--------------->8--- > > HTH! This is great, but if the build fails I just get an error message, there is not output regarding where and why it failed. --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,run-in-store (build-package prot-common) The following derivations will be built: /gnu/store/scjj4z453cwh88nlrkbxhllvkdyr90h0-prot-common-0.drv /gnu/store/px4b6c5sc819pjdpn53sh12p3ahyja9n-prot-common.el.drv While executing meta-command: ERROR: 1. &store-protocol-error: message: "build of `/gnu/store/scjj4z453cwh88nlrkbxhllvkdyr90h0-prot-= common-0.drv' failed" status: 1 --8<---------------cut here---------------end--------------->8--- Is there way to make it ouput the same thing as it would if I ran `guix build` on the CLI?