-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Describe the bug
coredump when calling function which imported from file
Steps To Reproduce
/tmp/fun.nix:
{a}: a
nix run 'github:nixos/nix/2.30.0' -- eval --impure --expr 'import /tmp/fun.nix {a="a";b="b";}'
, which print coredump message:
terminating due to unexpected unrecoverable internal error: Unexpected condition in getStorage at ../include/nix/expr/value.hh:844
zsh: IOT instruction (core dumped) nix run 'github:nixos/nix/2.30.0' -- eval --impure --expr
Expected behavior
nix run 'github:nixos/nix/2.30.0' -- eval --expr '({a}: a) {a="a";b="b";}'
error:
… from call site
at «string»:1:1:
1| ({a}: a) {a="a";b="b";}
| ^
error: function 'anonymous lambda' called with unexpected argument 'b'
at «string»:1:2:
1| ({a}: a) {a="a";b="b";}
| ^
Did you mean a?
Metadata
nix-env (Nix) 2.30.0
Additional context
Checklist
- [ x ] checked latest Nix manual (source)
- [ x ] checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.