From: Nikita Karetnikov <nikita.karetnikov@gmail.com>
To: bug-guix@gnu.org
Subject: Re: Preparing for an alpha release
Date: Sun, 16 Dec 2012 21:43:20 +0300 [thread overview]
Message-ID: <CAD15K4uKVViD9SqQjVPhY-r1Gc=29-Ay_2rP1sLD3zgdFim1jA@mail.gmail.com> (raw)
In-Reply-To: <878v8yj5q3.fsf@gnu.org>
> things related to command-line tools, such as options documented and
> not implemented in ‘guix-package’;
I'd like to implement '--roll-back' and '--search'.
Questions:
scheme@(guile-user)> ,use (guix-package)
scheme@(guile-user)> %current-profile
$1 = "/nix/var/nix/profiles/per-user/root/guix-profile"
scheme@(guile-user)> %profile-directory
$2 = "/nix/var/nix/profiles/per-user/root"
scheme@(guile-user)> %user-environment-directory
$3 = "/root/.guix-profile"
'ls' doesn't list the above. Why?
# ls -a /nix/var/nix/profiles/per-user/root/
. .. channels channels-1-link
# ls -a /root
. .aptitude .bashrc .gitconfig .nix-channels .profile
.. .bash_history .cache .gnupg .nix-defexpr
How should '--roll-back' work? Does Guix support multiple profiles?
Nix uses the following scheme. [1]
# ls /nix/var/nix/profiles/
default default-2-link default-5-link default-8-link
default-10-link default-3-link default-6-link default-9-link
default-1-link default-4-link default-7-link per-user
What function should be used to access the pointee of 'guix-profile'?
I assume that it should work like this:
1. Get the pointee of 'guix-profile'.
2. Parse the name of the pointee.
3. Decrement the number and save that as '%current-profile'.
Should 'guix-package' also support '--switch-generation',
'--list-generations', and '--switch-profile'? [1]
How to implement '--search'?
One option is to wrap around 'nix-env --search', but there are two
problems with this approach:
1. I don't know how to call it from Guile.
2. We don't want to depend on 'nix-env', do we?
I apologize if my questions sound naive, but I still have a vague
understanding of the internals.
Nikita
[1] http://hydra.nixos.org/build/3488542/download/1/manual/#sec-profiles
next prev parent reply other threads:[~2012-12-16 18:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-16 16:56 Preparing for an alpha release Ludovic Courtès
2012-12-16 18:43 ` Nikita Karetnikov [this message]
2012-12-16 21:54 ` 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='CAD15K4uKVViD9SqQjVPhY-r1Gc=29-Ay_2rP1sLD3zgdFim1jA@mail.gmail.com' \
--to=nikita.karetnikov@gmail.com \
--cc=bug-guix@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).