lix/src/libexpr/primops
Eelco Dolstra 6dbd5c26e6
Make flake input fetching lazy
As long as the flake input is locked, it is now only fetched when it
is evaluated (e.g. "nixpkgs" is fetched when
"inputs.nixpkgs.<something>" is evaluated).

This required adding an "id" attribute to the members of "inputs" in
lockfiles, e.g.

  "inputs": {
    "nixpkgs/release-19.03": {
      "id": "nixpkgs",
      "inputs": {},
      "narHash": "sha256-eYtxncIMFVmOHaHBtTdPGcs/AnJqKqA6tHCm0UmPYQU=",
      "nonFlakeInputs": {},
      "uri": "github:edolstra/nixpkgs/e9d5882bb861dc48f8d46960e7c820efdbe8f9c1"
    }
  }

because the flake ID needs to be known beforehand to construct the
"inputs" attrset.

Fixes #2913.
2019-06-04 19:17:03 +02:00
..
context.cc Add builtins.appendContext. 2019-01-31 08:52:23 -05:00
fetchGit.cc Add date of last commit to SourceInfo 2019-05-29 10:10:36 +02:00
fetchGit.hh Add date of last commit to SourceInfo 2019-05-29 10:10:36 +02:00
fetchMercurial.cc Make flakes work with 'nix build --store ...' 2019-05-15 15:38:24 +02:00
flake.cc Make flake input fetching lazy 2019-06-04 19:17:03 +02:00
flake.hh Make flake input fetching lazy 2019-06-04 19:17:03 +02:00
flakeref.cc Fix clang compilation error 2019-06-03 21:51:06 +02:00
flakeref.hh Allow bare flakerefs as installables 2019-05-31 21:42:23 +02:00
fromTOML.cc Fix build on 32-bit systems and macOS 2018-07-11 21:12:18 +02:00