all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: "Ludovic Courtès" <ludo@gnu.org>, zimoun <zimon.toutoune@gmail.com>
Cc: help-guix@gnu.org, Anthony Quizon <anthoq88@gmail.com>
Subject: Re: Building packages in REPL
Date: Sat, 20 Mar 2021 11:57:48 +0100	[thread overview]
Message-ID: <87eegart1v.fsf@yoctocell.xyz> (raw)
In-Reply-To: <87h7tx6krr.fsf@gnu.org>

On Fri, Jul 24 2020, Ludovic Courtès wrote:

> (guix scripts) has a high-level ‘build-package’ 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 = #<procedure 7f2170c05540 at guix/scripts.scm:122:2 (state)>
> scheme@(guix-user)> ,run-in-store (build-package coreutils)
> /gnu/store/yvsd53rkbvy9q8ak6681hai62nm6rf31-coreutils-8.32-debug
> /gnu/store/n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils-8.32
> $2 = #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?




  parent reply	other threads:[~2021-03-20 10:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26  5:13 Building packages in REPL Anthony Quizon
2020-06-26  7:25 ` Konrad Hinsen
2020-06-26 10:00   ` zimoun
2020-06-26 10:17     ` Julien Lepiller
2020-06-26 10:44       ` zimoun
2020-07-24 14:38         ` Ludovic Courtès
2020-07-27 14:13           ` Pierre Neidhardt
2020-07-27 23:30           ` zimoun
2021-03-20 10:57           ` Xinglu Chen [this message]
2020-06-26 14:26     ` Efraim Flashner
2020-06-30  7:58       ` Anthony Quizon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eegart1v.fsf@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=anthoq88@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.