Add preliminary binary substituter.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Apr 2013 08:44:20 +0000 (10:44 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 3 Apr 2013 20:44:39 +0000 (22:44 +0200)
commitf65cf81a3cd15eab993e129977bca46972508b4b
tree81fea5351de590e66a985870f02aeb85bf33a3fc
parentcf53ecf514301d3ffdfc33dea057b057ffb132d6
Add preliminary binary substituter.

* guix/scripts/substitute-binary.scm: New file.
* Makefile.am (MODULES): Add it.
* nix/scripts/substitute-binary.in: New file.
* config-daemon.ac: Produce nix/scripts/substitute-binary.
* daemon.am (nodist_pkglibexec_SCRIPTS): Add
  nix/scripts/substitute-binary.
* guix/store.scm (substitutable-path-info): Use the
  `query-substitutable-path-infos' RPC.
* nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
* pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
* test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
  `GUIX_BINARY_SUBSTITUTE_URL, and create
  $NIX_STATE_DIR/substituter-data.
  Run `guix-daemon' within `./pre-inst-env'.
* tests/store.scm ("substitute query"): New test.
.gitignore
Makefile.am
config-daemon.ac
daemon.am
guix/scripts/substitute-binary.scm [new file with mode: 0755]
guix/store.scm
nix/nix-daemon/guix-daemon.cc
nix/scripts/substitute-binary.in [new file with mode: 0644]
pre-inst-env.in
test-env.in
tests/store.scm