lix/src
Eelco Dolstra 90fe1dfd2f Register flake source trees as GC roots
This ensures that flakes don't get garbage-collected, which is
important to get nix-channel-like behaviour.

For example, running

  $ nix build hydra:

will create a GC root

  ~/.cache/nix/flake-closures/hydra -> /nix/store/xarfiqcwa4w8r4qpz1a769xxs8c3phgn-flake-closure

where the contents/references of the linked file in the store are the
flake source trees used by the 'hydra' flake:

  /nix/store/n6d5f5lkpfjbmkyby0nlg8y1wbkmbc7i-source
  /nix/store/vbkg4zy1qd29fnhflsv9k2j9jnbqd5m2-source
  /nix/store/z46xni7d47s5wk694359mq9ay353ar94-source

Note that this in itself is not enough to allow offline use; the
fetcher for the flakeref (e.g. fetchGit or downloadCached) must not
fail if it cannot fetch the latest version of the file, so long as it
knows a cached version.

Issue #2868.
2019-05-23 23:53:25 +02:00
..
build-remote canBuildLocally: check for features 2019-03-06 05:03:25 +00:00
cpptoml Include cpptoml for build simplicity 2018-07-03 18:39:36 +02:00
libexpr Register flake source trees as GC roots 2019-05-23 23:53:25 +02:00
libmain pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
libstore Prevent the global registry from being GC'ed 2019-05-22 23:43:58 +02:00
libutil Merge remote-tracking branch 'origin/master' into flakes 2019-05-15 20:51:29 +02:00
nix Register flake source trees as GC roots 2019-05-23 23:53:25 +02:00
nix-build Merge remote-tracking branch 'origin/master' into flakes 2019-05-08 14:30:27 +02:00
nix-channel Refactor downloadCached() interface 2019-05-22 23:36:29 +02:00
nix-collect-garbage Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-copy-closure Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-daemon findRoots(): Don't censor for trusted users 2019-03-14 13:53:34 +01:00
nix-env Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-instantiate Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-prefetch-url nix-prefetch-url: Stop progress bar before printing results 2018-11-09 10:34:12 +01:00
nix-store nix-store --gc --print-roots: Sort output 2019-03-14 13:59:10 +01:00
nlohmann nlohmann-json: 3.5.0 -> 3.6.1 2019-04-19 14:53:58 +02:00
resolve-system-dependencies Remove mentions of libformat, it no longer exists 2019-01-05 14:31:29 -05:00