Andreas Enge <[email protected]> skribis: > Am Dienstag, 11. Dezember 2012 schrieb Ludovic Courtès: >> Anyway, what does work is something like: >> $ guix-package --profile=$HOME/.guix-profile --install=hello > > This worked, but in a rather strange way. .guix-profile did not exist > yet. It was created as a symbolic link to the new file > .guix-profile-1-link, itself a symbolic link to > /nix/store/1n6bpxkjq2w1m8nlyc6c6bpf0y8rspi0-user-environment . > > I deleted the redirection and let .guix-profile point to /nix/store/... > directly. Then adding a second package recreates the previous situation, > with .guix-profile-1-link pointing to a different user environment > in /nix/store. And after removing the second package, I get a > .guix-profile-2-link pointing to the previous user environment in > /nix/store. Interesting!
This is expected. As with nix-env, there’d normally be a ~/.guix-profile pointing to /nix/var/nix/profiles/per-user/$USER/profile, which would itself point to profile-X-link in the same directory (where X is the generation number.) So what you’re observing is basically this. > As for the rough edges, installing the hello package twice results in > an error message, too. Commit 1c67d63 fixes that. > Another question: My guix source and compile directory gets populated > with symbolic links t-profile* to files /nix/store/*user-environment > that survive even to "make distclean". I suppose I can safely delete them? > If yes, could they be deleted by "make clean"? Yes. These were leftovers from tests/guix-package.sh. I think 7a6548c solves that. Thanks! Ludo’.
