Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-rebuild error: function 'anonymous lambda' called with unexpected argument 'nix' #1444

Closed
ddogfoodd opened this issue Sep 14, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@ddogfoodd
Copy link
Contributor

Describe the bug
When trying to rebuild nixos with the latest nixos-unstable changes there is an error, which I assume might occur due to devenv 1.1 making it into nixos-unstable.

Here is the error message:

┏━ 1 Errors:
┃ error:
┃        … while calling the 'head' builtin
┃          at /nix/store/2pw5bsq1r80lcvvh2wp89m142nln1zpl-source/lib/attrsets.nix:1575:11:
┃          1574|         || pred here (elemAt values 1) (head values) then
┃          1575|           head values
┃              |           ^
┃          1576|         else
┃
┃        … while evaluating the attribute 'value'
┃          at /nix/store/2pw5bsq1r80lcvvh2wp89m142nln1zpl-source/lib/modules.nix:821:9:
┃           820|     in warnDeprecation opt //
┃           821|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
┃              |         ^
┃           822|         inherit (res.defsFinal') highestPrio;
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: function 'anonymous lambda' called with unexpected argument 'nix'
┃        at /nix/store/2pw5bsq1r80lcvvh2wp89m142nln1zpl-source/pkgs/by-name/de/devenv/package.nix:1:1:
┃             1| { lib
┃              | ^
┃             2| , stdenv
┃        Did you mean lib?
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 15:15:50 after 13s

Version

Current version I have installed is 1.0.8
This error occurs when trying to update to 1.1

@ddogfoodd ddogfoodd added the bug Something isn't working label Sep 14, 2024
@ddogfoodd
Copy link
Contributor Author

In case this issue should be opened in the nixpkgs repo instead, let me know and please excuse me posting it here.
Also let me know you cannot reproduce and I can provide further help via logs etc.

@heinwol
Copy link

heinwol commented Sep 15, 2024

@ddogfoodd I confirm, have the exact same issue. Maybe will use upstream for now.

@devusb
Copy link

devusb commented Sep 15, 2024

@ddogfoodd are you using Lix? If so, believe there's a conflict between this bit in their overlay and this nixpkgs PR that causes this issue -- the PR removed nix as an input to the devenv derivation, but the overlay still passes it.

I think the overlay is no longer necessary since the nix version is now explicit in the devenv package -- planning to open a PR to the Lix repo but haven't had a chance yet.

@domenkozar
Copy link
Member

Thanks @devusb

@devusb
Copy link

devusb commented Sep 18, 2024

https://git.lix.systems/lix-project/nixos-module/pulls/34 fix is in main, sounds like a release with it is still pending.

@ddogfoodd
Copy link
Contributor Author

Fixed as of lix 2.91.1-1

@BreakingTV
Copy link

Running on lix version 2.91.1, still getting that error message...
Is there some other fix?

@ddogfoodd
Copy link
Contributor Author

@BreakingTV You have to use the lix version 2.91.1-1
For reference see: https://git.lix.systems/lix-project/lix/issues/528#issuecomment-6883

@BreakingTV
Copy link

Ohhh okay my bad, thx ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants