nix-gh/src
Eelco Dolstra a9cbd67f90 Add "nix mount-store" command
This mounts an arbitrary Nix store on the specified mount point.

Typical usage:

  $ /nix/store/d0am5d8gwh2kfdcgyxh4y684mb5b2v54-blender-2.79/bin/blender --version
  bash: /nix/store/d0am5d8gwh2kfdcgyxh4y684mb5b2v54-blender-2.79/bin/blender: No such file or directory

  $ nix mount-store /tmp/mp --store https://cache.nixos.org?local-nar-cache=/tmp/nars

  $ unshare -m -r

  $ mount -o bind /tmp/mp /nix/store

  $ /nix/store/d0am5d8gwh2kfdcgyxh4y684mb5b2v54-blender-2.79/bin/blender --version
  [after a lot of downloading...]
  Blender 2.79 (sub 0)

One application is to replace the current remote store file access in
hydra-server implemented via "nix {cat,ls}-store", which doesn't work
all that well (e.g. it doesn't resolve symlinks properly).

Another application would be on-demand fetching of build inputs on
Hydra build slaves (to speed up builds that don't access their entire
closure). However, that will require a lot more machinery.
2017-12-22 00:24:43 +01:00
..
boost Shut up some warnings 2017-04-14 14:42:20 +02:00
build-remote build-remote: Fix missing log output 2017-11-25 01:34:18 +01:00
buildenv Fix "Unexpected EOF reading a line" error 2017-11-29 11:56:15 +00:00
libexpr json-to-value: Throw sensible error message on invalid numbers 2017-12-14 19:09:45 -05:00
libmain anchor nix::Exit exception 2017-11-14 12:39:30 -06:00
libstore Fix build on gcc 7 2017-12-16 00:49:31 +01:00
libutil logging.cc: add missing 'override' 2017-12-11 12:08:40 -06:00
linenoise linenoise.cpp: allow completions from empty input 2017-12-19 12:52:10 -06:00
nix Add "nix mount-store" command 2017-12-22 00:24:43 +01:00
nix-build nix-shell/nix-build: Support .drv files again 2017-11-24 18:08:35 +01:00
nix-channel Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-daemon Remove the remote-builds option 2017-10-24 11:00:16 +02:00
nix-env nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-instantiate nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-prefetch-url nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-store Pass lists/attrsets to bash as (associative) arrays 2017-10-25 13:01:50 +02:00
nlohmann Simplify build by including nlohmann/json.hpp 2017-12-04 17:11:36 +01:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00