copy-from-other-stores.pl: Report downloaded size as 0
copy-from-other-stores.pl: Respect $NIX_BIN_DIR
Add support for uncompressed NARs in binary caches

Issue NixOS/hydra#102.
Manual: auto-optimise-store is disabled by default
Leave `HAVE_HUP_NOTIFICATION' undefined on GNU/Hurd.
nix-build --run-env: Source $stdenv/setup in the interactive shell

This ensures that not just environment variables are set, but also
shell functions such as unpackPhase, configurePhase and so on.
nix-build --run-env: Always use Bash

Fixes #113.
Fixes #131.
build-remote.pl: Move "building ..." message to a better place
doc: typo
Add gzip support for channel unpacking
Garbage collector: Don't follow symlinks arbitrarily

Only indirect roots (symlinks to symlinks to the Nix store) are now
supported.
Fix syntax error in unpack-channel
Allow bind-mounting regular files into the chroot

mount(2) with MS_BIND allows mounting a regular file on top of a regular
file, so there's no reason to only bind directories. This allows finer
control over just which files are and aren't included in the chroot
without having to build symlink trees or the like.

Signed-off-by: Shea Levy <shea@shealevy.com>
Revert "build-remote.pl: Enforce timeouts locally"

This reverts commit 69b8f9980f39c14a59365a188b300a34d625a2cd.

The timeout should be enforced remotely.  Otherwise, if the garbage
collector is running either locally or remotely, if will block the
build or closure copying for some time.  If the garbage collector
takes too long, the build may time out, which is not what we want.
Also, on heavily loaded systems, copying large paths to and from the
remote machine can take a long time, also potentially resulting in a
timeout.
nix-build --run-env: Add a ‘--pure’ flag

This causes the environment to be (almost) cleared, thus giving a
shell that more closely resembled the actual Nix derivation.
Rename ‘nix-build --run-env’ to ‘nix-shell’
nix-shell: Set some environment variables also set by build.cc

Setting $NIX_STORE causes the purity checks in gcc/ld-wrapper to kick
in, so that's why we unset $NIX_ENFORCE_PURITY.
nix-shell: Set $IN_NIX_SHELL

This allows scripts to distinguish between a real build and a Nix
shell.
Add hacking notes plus a script for running nix-shell
buildenv: remove special treatment of python files

buildPythonPackage does not leave easy_install.pth and site.py
anymore. A python package that leaves these files is broken. An
exception to this is setuptoolsSite which packages setuptools'
site.py. To include it into a buildenv, this patch is even needed, not
just cosmetic.