all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Command for printing derivations that will be built?
Date: Tue, 9 May 2023 22:38:34 +0300	[thread overview]
Message-ID: <ZFqhOlzEOrQlKtlY@3900XT> (raw)
In-Reply-To: <CAGxMbPa7y31QCEcbrALnWsLX0VjuP77VEyOqDwSTtn1D3_mrow@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

On Tue, May 09, 2023 at 07:04:59PM +0000, Rodrigo Morales wrote:
> From what I understand in the output of `guix package -u' (see below),
> whenever I execute it, some derivations that exist in `/gnu/store' are
> passed to `guix build' and so they are built. Am I correct?
> 
> If I'm correct, I would like to know how I can print the list that is
> reported by `guix package -u' below "The following derivations will be
> built". I know I can execute `guix package -u' and press `C-c' in the
> next 5 seconds. However, I'd like to do this the right way. That is,
> write a command that only prints that list and does nothing more.
> 
> The reason I'm asking is because sometimes I want to build specific
> derivations in order to have those packages advertised in my local
> network in the order that I feel it's the best for me.
> 
> ,----
> | $ guix package -u
> | The following packages will be upgraded:
> |    (... list of packages ...)
> |
> | The following derivations will be built:
> |    (... list of derivations in /gnu/store ...)
> |
> | building (... a derivation ...)
> | - 'unpack' phase
> `----

One option is to run `guix package -u . -n'. '-u .' will do all the
packages, and '-n' is the short flag for --dry-run, which won't actually
build any of the packages but will show you what will be built.

-- 
Efraim Flashner   <efraim@flashner.co.il>   פלשנר אפרים
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2023-05-09 19:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-09 19:04 Command for printing derivations that will be built? Rodrigo Morales
2023-05-09 19:38 ` Efraim Flashner [this message]

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=ZFqhOlzEOrQlKtlY@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=moralesrodrigo1100@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.