NixOS / nixpkgs-vet

Tool to vet (check) Nixpkgs, including its pkgs/by-name directory
MIT License
29 stars 7 forks source link

eval: use a work directory instead of an environment variable to control the Nix expression #84

Closed philiptaron closed 3 months ago

philiptaron commented 3 months ago

Motivation

This reduces the list of environment variables needed in order to use the unwrapped nixpkgs-check-name tool to one: NIX_CHECK_BY_NAME_NIX_PACKAGE. #79 now needs to use the unwrapped tool in order to control which Nix is used in an integration test, but it shouldn't have to figure this detail out.

No test used the NIX_CHECK_BY_NAME_EXPR_PATH to change the Nix file that was read, and it's simpler and shorter to rebuild in order to test out changes to the src/eval.nix.

Things Done