guix-package: Create or diagnose missing profile directory.
authorLudovic Courtès <ludo@gnu.org>
Mon, 14 Jan 2013 22:44:58 +0000 (23:44 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 14 Jan 2013 22:44:58 +0000 (23:44 +0100)
commit0ec1af59e564c00fb48359fec84d049138589dee
tree9fa48723892f3aa8f944c7c6f7f2fc688151e3ed
parent2a5ab9dceba14b14170d87d180e9422299ac713e
guix-package: Create or diagnose missing profile directory.

Reported by Andreas Enge.

* guix-package.in (%profile-directory): Honor $NIX_STATE_DIR.
  (guix-package)[ensure-default-profile]: Use it.
  [process-actions]: Call it when the `profile' option is
  %CURRENT-PROFILE.
* tests/guix-package.sh: Add installation test with $HOME set, using the
  default profile.
doc/guix.texi
guix-package.in
tests/guix-package.sh