Devenv doesn't work with Lix #43

Closed
opened 2024-11-06 11:59:33 +00:00 by gepbird · 2 comments

I'm using lixFromNixpkgs, when I add environment.systemPackages = [ pkgs.devenv ]; to my config, I get this error message:

Eval log
error:
       … while calling the 'head' builtin
         at /nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-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/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         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/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/pkgs/by-name/de/devenv/package.nix:1:1:
            1| { lib
             | ^
            2| , stdenv
       Did you mean lib?

I suspect the cause is devenv inputs nixVersions, but I'm not sure how to continue from here.
The issue doesn't happen when lix nixos-module is disabled.

I'm using `lixFromNixpkgs`, when I add `environment.systemPackages = [ pkgs.devenv ];` to my config, I get this error message: <details><summary>Eval log</summary> ``` error: … while calling the 'head' builtin at /nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-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/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/lib/modules.nix:816:9: 815| in warnDeprecation opt // 816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 817| 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/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/pkgs/by-name/de/devenv/package.nix:1:1: 1| { lib | ^ 2| , stdenv Did you mean lib? ``` </details> I suspect the cause is [devenv inputs `nixVersions`](https://github.com/NixOS/nixpkgs/blob/18536bf04cd71abd345f9579158841376fdd0c5a/pkgs/by-name/de/devenv/package.nix#L10), but I'm not sure how to continue from here. The issue doesn't happen when lix nixos-module is disabled.
gepbird changed title from Direnv doesn't work with Lix to Devenv doesn't work with Lix 2024-11-06 11:59:43 +00:00
Owner

Surely we fixed this:

useCppNixOverlay =

should make this not happen.

Are you running version 2.91.1 of the overlay or HEAD? If your version is older, it's missing the bug fix.

Surely we fixed this: https://git.lix.systems/lix-project/nixos-module/src/commit/2bbdcd73b9a464f8acf45a7100feb979883ba485/overlay.nix#L67 should make this not happen. Are you running version 2.91.1 of the overlay or HEAD? If your version is older, it's missing the bug fix.
Owner

duplicate lix-project/lix#528 (comment), resolution: update to module 2.91.1-1

duplicate https://git.lix.systems/lix-project/lix/issues/528#event-6884, resolution: update to module 2.91.1-1
jade closed this issue 2024-11-10 02:53:16 +00:00
Sign in to join this conversation.
No labels
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/nixos-module#43
No description provided.