lix/src/libexpr
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
..
primops Register flake source trees as GC roots 2019-05-23 23:53:25 +02:00
attr-path.cc findAlongAttrPath(): Throw AttrPathNotFound 2019-04-08 14:20:58 +02:00
attr-path.hh findAlongAttrPath(): Throw AttrPathNotFound 2019-04-08 14:20:58 +02:00
attr-set.cc EvalState::allocAttr(): Add convenience method 2019-02-11 11:55:29 +01:00
attr-set.hh Bindings::get(): Add convenience method 2019-02-11 11:55:35 +01:00
common-eval-args.cc Refactor downloadCached() interface 2019-05-22 23:36:29 +02:00
common-eval-args.hh Fixed issue #13 2019-04-30 11:26:45 +02:00
eval-inline.hh GC_malloc -> GC_MALLOC 2018-06-12 17:49:55 +02:00
eval.cc Fetch the flake registry from the NixOS/flake-registry repo 2019-05-22 22:56:46 +02:00
eval.hh Fetch the flake registry from the NixOS/flake-registry repo 2019-05-22 22:56:46 +02:00
get-drvs.cc experimental/optional -> optional 2019-03-14 14:10:52 +01:00
get-drvs.hh experimental/optional -> optional 2019-03-14 14:10:52 +01:00
json-to-value.cc json-to-value: Use strtol instead of strtoi 2018-05-26 18:43:46 -04:00
json-to-value.hh Add builtin function ‘fromJSON’ 2014-07-04 13:34:15 +02:00
lexer.l simplify handling of extra '}' 2018-10-27 00:14:51 +02:00
local.mk Remove mentions of libformat, it no longer exists 2019-01-05 14:31:29 -05:00
names.cc Add splitVersion primop. 2018-02-14 09:55:43 -05:00
names.hh Add splitVersion primop. 2018-02-14 09:55:43 -05:00
nix-expr.pc.in pkg-config files: Use c++17 2019-02-12 13:44:20 +01:00
nixexpr.cc Fix compatibility with latest boost::format 2018-03-14 19:25:09 +01:00
nixexpr.hh Revert "Throw a specific error for incomplete parse errors." 2018-05-11 11:40:50 +02:00
parser.y Refactor downloadCached() interface 2019-05-22 23:36:29 +02:00
primops.cc Refactor downloadCached() interface 2019-05-22 23:36:29 +02:00
primops.hh Make prim_exec and prim_importNative available to plugins 2018-04-09 10:26:50 -04:00
symbol-table.hh Add environment variable NIX_SHOW_SYMBOLS for dumping the symbol table 2019-04-11 23:04:13 +02:00
value-to-json.cc nix path-info: Add --json flag 2016-08-29 17:29:24 +02:00
value-to-json.hh nix path-info: Add --json flag 2016-08-29 17:29:24 +02:00
value-to-xml.cc First hit at providing support for floats in the language. 2016-01-05 00:40:40 +01:00
value-to-xml.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
value.hh libexpr: Use int64_t for NixInt 2018-08-29 01:05:52 +02:00