guix-register: Expect closures to refer to the original store.
authorLudovic Courtès <ludo@gnu.org>
Mon, 23 Sep 2013 19:24:18 +0000 (21:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 23 Sep 2013 21:56:35 +0000 (23:56 +0200)
commitcaf96debc257dee9ad8b0ea74cc6a8241c30dad4
tree746a3a19fdb7b8462eb4e9466d182a11a4cc8136
parenta4141d6d5326925174ef10a7d84ec72f03d6a6cb
guix-register: Expect closures to refer to the original store.

* nix/guix-register/guix-register.cc (prefix): New variable.
  (parse_opt): Use it.
  (register_validity): Change 'info.path' to the final store name.
  Hash the final under its real path.
* tests/guix-register.sh: Adjust the contents of $closure accordingly.
  Rename 'NIX_LOCALSTATE_DIR' to 'NIX_STATE_DIR'.  Don't try to call
  'valid-path?'.  Add test using 'sqlite3'.
nix/guix-register/guix-register.cc
tests/guix-register.sh