From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Preparing for an alpha release Date: Sun, 16 Dec 2012 21:43:20 +0300 Message-ID: References: <878v8yj5q3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkJBL-0007EM-Qx for bug-guix@gnu.org; Sun, 16 Dec 2012 13:43:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkJBK-0000bf-8w for bug-guix@gnu.org; Sun, 16 Dec 2012 13:43:23 -0500 Received: from mail-vb0-f41.google.com ([209.85.212.41]:48135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkJBK-0000aW-0G for bug-guix@gnu.org; Sun, 16 Dec 2012 13:43:22 -0500 Received: by mail-vb0-f41.google.com with SMTP id l22so6290275vbn.0 for ; Sun, 16 Dec 2012 10:43:21 -0800 (PST) In-Reply-To: <878v8yj5q3.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org > things related to command-line tools, such as options documented and > not implemented in =91guix-package=92; I'd like to implement '--roll-back' and '--search'. Questions: scheme@(guile-user)> ,use (guix-package) scheme@(guile-user)> %current-profile $1 =3D "/nix/var/nix/profiles/per-user/root/guix-profile" scheme@(guile-user)> %profile-directory $2 =3D "/nix/var/nix/profiles/per-user/root" scheme@(guile-user)> %user-environment-directory $3 =3D "/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