nixpkgs does not honor its own lib/minver.nix and this breaks tvix

#349
Opened by amjoseph at 2023-12-12T07·33+00

nixpkgs uses __curPos and builtins.filterSource, which are not in nix 2.3.

We don't have to implement these, but we do need to turn them into tryEval-catchable errors. This way the few packages that use these monstrosities will simply appear to be broken (good riddance!) rather than busting the entire eval session.

  1. Untrue, both __curPos and builtins.filterSource are implemented by C++ Nix 2.3.

    sterni at 2023-12-12T12·37+00

  2. We will have to implement filterSource eventually since it is quite useful and heavily used in downstream from nixpkgs projects (among them depot). For __curPos we can go the path we've gone with builtins.unsafeGetAttrPos for now at least.

    sterni at 2023-12-12T12·38+00