-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builtins.getFlake: also support path argument
This is a papercut that has been bugging me for a while. `:lf .` is fine but doesn't show you what variables it adds to the context. And `builtins.getFlake (toString ./.)` works but gets tedious after a while. When inspecting a flake in the repl, the natural thing to do is to call: x = builtins.getFlake ./. Before this change, Nix would fail with: error: expected a string but found a path: /path/to/flake After this change, Nix automatically coerces the path to a string.
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters