Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-fetchTree pure-eval use of builtins.path
This is a rare combination, and it would have been more relevant before #67, but it is a tested fix nonetheless. (Specifically, for issues like hercules-ci/flake-parts#252) builtins.path had `sha256` since its introduction, so no problem there. This also catches accidental path-based impurities. Flakes are meant to be pure. "path" inputs do ask for trouble, but that doesn't mean we should violate purity. Also note that `fetchTree` will happily use the `narHash` anyway, so this change makes the behavior more consistent between configurations with and without `fetchTree`.
- Loading branch information