unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Command for printing derivations that will be built?
@ 2023-05-09 19:04 Rodrigo Morales
  2023-05-09 19:38 ` Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Rodrigo Morales @ 2023-05-09 19:04 UTC (permalink / raw)
  To: help-guix

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
`----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Command for printing derivations that will be built?
  2023-05-09 19:04 Command for printing derivations that will be built? Rodrigo Morales
@ 2023-05-09 19:38 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2023-05-09 19:38 UTC (permalink / raw)
  To: Rodrigo Morales; +Cc: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-09 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-09 19:04 Command for printing derivations that will be built? Rodrigo Morales
2023-05-09 19:38 ` Efraim Flashner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).