guix-play/guix
Ludovic Courtès 49e6291a7a Add 'guix offload' as a daemon build hook.
* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_NO_BUILD_HOOK): New macro.
  (options): Add '--no-build-hook'.
  (parse_opt): Handle it.
  (main)[HAVE_DAEMON_OFFLOAD_HOOK]: Set 'useBuildHook' by default.
  Set $NIX_BUILD_HOOK to our offload hook unless otherwise specified.
  [!HAVE_DAEMON_OFFLOAD_HOOK]: Clear 'useBuildHook'.
* pre-inst-env.in: Set and export NIX_BUILD_HOOK.
* nix/scripts/offload.in, guix/scripts/offload.scm: New files.
* guix/ui.scm (show-guix-help)[internal?]: Add "offload".
* config-daemon.ac: Call 'GUIX_CHECK_UNBUFFERED_CBIP'.
  Instantiate 'nix/scripts/offload'.  Set 'BUILD_DAEMON_OFFLOAD'
  conditional, and optionally define 'HAVE_DEAMON_OFFLOAD_HOOK' cpp
  macro.
* daemon.am (nodist_pkglibexec_SCRIPTS)[BUILD_DAEMON_OFFLOAD]: Add it.
* Makefile.am (MODULES)[BUILD_DAEMON_OFFLOAD]: Add
  'guix/scripts/offload.scm'.
  (EXTRA_DIST)[!BUILD_DAEMON_OFFLOAD]: Likewise.
* m4/guix.m4 (GUIX_CHECK_UNBUFFERED_CBIP): New macro.
* doc/guix.texi (Setting Up the Daemon): Move most of the body to...
  (Build Environment Setup): ... this.  New subsection.
  (Daemon Offload Setup): New subsection.
2014-01-24 00:01:50 +01:00
..
build linux-initrd: Make /dev/{null,zero} world-writable. 2014-01-18 22:32:50 +01:00
build-system build-system/perl: Honour phases argument in perl build system. 2013-12-09 13:50:58 +01:00
scripts Add 'guix offload' as a daemon build hook. 2014-01-24 00:01:50 +01:00
base32.scm Update license headers. 2013-01-06 00:47:50 +01:00
build-system.scm Move record utilities to (guix records). 2013-05-12 15:46:16 +02:00
config.scm.in store: Add 'register-path' procedure. 2014-01-24 00:01:49 +01:00
derivations.scm derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
download.scm derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
ftp-client.scm ftp-client: Let callers handle `ftp-open' exceptions. 2013-05-14 23:51:36 +02:00
gnu-maintenance.scm gnu-maintenance: Ignore "redirect" blurbs. 2013-12-03 21:33:55 +01:00
gnupg.scm guix refresh: Add '--key-download'. 2013-06-10 08:15:17 +00:00
hash.scm hash: Add 'open-sha256-input-port', for Guile > 2.0.9. 2014-01-24 00:01:49 +01:00
http-client.scm utils: Add `guile-version>?', and use it. 2013-08-23 15:51:36 +02:00
licenses.scm licenses: Add GNU FDL 1.3+. 2014-01-22 00:20:40 +01:00
monads.scm gnu: Add (gnu system). 2013-12-10 00:24:02 +01:00
nar.scm nar: Add 'restore-file-set', for use by build hooks. 2014-01-24 00:01:50 +01:00
packages.scm derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
pk-crypto.scm archive: Add '--generate-key'. 2013-12-30 22:57:37 +01:00
pki.scm pki: Factorize signature manipulation procedures. 2014-01-24 00:01:49 +01:00
profiles.scm derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
records.scm records: define-record-type*: Field bindings are bound with 'let*'. 2013-10-15 23:31:22 +02:00
serialization.scm Add (guix nar) and (guix serialization). 2013-04-12 21:57:58 +02:00
snix.scm snix: Prefer descriptions from the Womb rather than from Nixpkgs. 2013-10-09 16:18:23 +02:00
store.scm store: Add 'topologically-sorted'. 2014-01-24 00:01:50 +01:00
ui.scm Add 'guix offload' as a daemon build hook. 2014-01-24 00:01:50 +01:00
utils.scm utils: Add 'fcntl-flock'. 2014-01-24 00:01:49 +01:00