nix run
should work with an installable that is a function.
#5316
Labels
nix run
should work with an installable that is a function.
#5316
Describe the bug
A clear and concise description of what the bug is.
If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.
Steps To Reproduce
nix run --impure --expr '{pkgs ? import <nixpkgs> {}}: pkgs.hello'
Result
Expected behavior
I expect
nix run
to evaluate the function with default agrurments.nix-env --version
outputnix-env (Nix) 2.4pre20210922_bcd73eb
Additional context
My actual use case involves passing
-f /path/to/command.nix
.nix shell
has the expected behavior.The text was updated successfully, but these errors were encountered: