Devenv 1.1 rebuild throws error: function 'anonymous lambda' called with unexpected argument 'nix' #528

Open
opened 2024-09-18 09:12:11 +00:00 by ddogfoodd · 1 comment

Describe the bug

Thought I'd repost this in the lix repo as someone suggested the error might be linked to lix. (See https://github.com/cachix/devenv/issues/1444#issuecomment-2351349829)

When trying to update to devenv 1.1 an error get thrown.

┏━ 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

Steps To Reproduce

  1. Use lix
  2. Try nixos-rebuild to install devenv 1.1
  3. Error should occur

Expected behavior

nixos-rebuild should finish without errors

nix --version output

nix (Lix, like Nix) 2.91.0

Additional context

See the Github issue comment for context. I thought I'd repost this here just so non-Github users are aware as well.

## Describe the bug Thought I'd repost this in the lix repo as someone suggested the error might be linked to lix. (See https://github.com/cachix/devenv/issues/1444#issuecomment-2351349829) When trying to update to devenv 1.1 an error get thrown. ``` ┏━ 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 ``` ## Steps To Reproduce 1. Use lix 2. Try nixos-rebuild to install devenv 1.1 3. Error should occur ## Expected behavior nixos-rebuild should finish without errors ## `nix --version` output nix (Lix, like Nix) 2.91.0 ## Additional context See the Github issue comment for context. I thought I'd repost this here just so non-Github users are aware as well.
ddogfoodd added the
bug
label 2024-09-18 09:12:11 +00:00
Owner

fixed on HEAD already here: lix-project/nixos-module#34

needs backport and a 2.91.0-1 module tag, sigh

fixed on HEAD already here: https://git.lix.systems/lix-project/nixos-module/pulls/34 needs backport and a 2.91.0-1 module tag, sigh
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#528
No description provided.