mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
f65cf81a3c
* 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.
11 lines
265 B
Text
11 lines
265 B
Text
#!@SHELL@
|
|
# A shorthand for "guix substitute-binary", for use by the daemon.
|
|
|
|
if test "x$GUIX_UNINSTALLED" = "x"
|
|
then
|
|
prefix="@prefix@"
|
|
exec_prefix="@exec_prefix@"
|
|
exec "@bindir@/guix" substitute-binary "$@"
|
|
else
|
|
exec guix substitute-binary "$@"
|
|
fi
|