unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nikita Karetnikov <nikita@karetnikov.org>
To: guix-devel@gnu.org
Subject: package.scm: (profile-derivation (%store) '())
Date: Fri, 20 Sep 2013 21:39:17 +0400	[thread overview]
Message-ID: <87r4cjjsu2.fsf@karetnikov.org> (raw)

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

I’d like to know how ‘roll-back’ creates an empty generation because
it’s necessary to do the same for ‘--delete-generations’.

However, I fail to understand how (profile-derivation (%store) ‘())
works (or any other function that uses (%store)).  I assume that some
code should set ‘%store’ to something else.  Like so:

scheme@(guix scripts package)> %store
$1 = #<<parameter> 934e7f8 proc: #<procedure 934e810 at ice-9/boot-9.scm:3154:17 () | (x)>>
scheme@(guix scripts package)> (%store)
$2 = #f
scheme@(guix scripts package)> (%store "FOO")
$3 = #f
scheme@(guix scripts package)> (%store)
$4 = "FOO"

But I don’t see anything similar in ‘package.scm’.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2013-09-20 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 17:39 Nikita Karetnikov [this message]
2013-09-20 20:21 ` package.scm: (profile-derivation (%store) '()) Ludovic Courtès
2013-09-20 21:08   ` Nikita Karetnikov
2013-09-20 21:35     ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87r4cjjsu2.fsf@karetnikov.org \
    --to=nikita@karetnikov.org \
    --cc=guix-devel@gnu.org \
    /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 public inbox

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

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).