tvix: handle corepkgs

#249
Opened by flokli at 2023-02-03T13·10+00

When invoking, Nix internally does (the equivalent of) prepending NIX_PATH with something like the following:

nix="$(nix-instantiate --eval -E '<nix>')

(note this command doesn't work with current Nix anymore, so pull in Nix 2.3 for that)

We should handle this as well. I don't think it's worthwhile to be able to overwrite the nix channel with the NIX_PATH env variable, but as nixpkgs relies on the <nix channel to exist, we'd need to at least short-circuit an import from <nix/fetchurl.nix to an include_bytes! of its contents.

  1. tazjin closed this issue at 2023-03-14T09·19+00