Skip to content

error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid #595

Open
@mwoodpatrick

Description

@mwoodpatrick

Bug description

Running the command:

nix-env -qaP hello

Generates the error

error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid

To Reproduce

Run command:

nix-env -qaP hello

Logs

error:
           … while evaluating the attribute 'nixos-wsl'

           … while calling the 'import' builtin

           … while evaluating the file '/nix/store/cp3hsjlm5gqfvyw4nn5y6ir3hhcvpj9z-nixos-wsl/nixos-wsl/default.nix':

           … while evaluating the attribute 'defaultNix'
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:229:5:
              228|   rec {
              229|     defaultNix =
                 |     ^
              230|       (builtins.removeAttrs result ["__functor"])

           … in the left operand of the update (//) operator
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:231:7:
              230|       (builtins.removeAttrs result ["__functor"])
              231|       // (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})
                 |       ^
              232|       // (if result ? packages.${system}.default then { default = result.packages.${system}.default; } else {});

           … while calling the 'removeAttrs' builtin
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:230:8:
              229|     defaultNix =
              230|       (builtins.removeAttrs result ["__functor"])
                 |        ^
              231|       // (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})

           … from call site
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:224:10:
              223|     else if lockFile.version >= 5 && lockFile.version <= 7
              224|     then allNodes.${lockFile.root}
                 |          ^
              225|     else throw "lock file '${lockFilePath}' has unsupported version ${toString lockFile.version}";

           … while calling anonymous lambda
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:156:13:
              155|     builtins.mapAttrs
              156|       (key: node:
                 |             ^
              157|         let

           … in the condition of the assert statement
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:211:13:
              210|           if node.flake or true then
              211|             assert builtins.isFunction flake.outputs;
                 |             ^
              212|             result

           … while calling the 'isFunction' builtin
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:211:20:
              210|           if node.flake or true then
              211|             assert builtins.isFunction flake.outputs;
                 |                    ^
              212|             result

           … while calling the 'import' builtin
             at /nix/store/8kpx53qi52yhjai1vdw8zpa95iqa61bv-source/default.nix:167:19:
              166|
              167|           flake = import (outPath + "/flake.nix");
                 |                   ^
              168|

           … while realising the context of path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl/flake.nix'

           error: path '/nix/store/l2sfdsab1fh107f5r8za7pnv9a2xxnlg-nixos-wsl' is not valid

WSL version

WSL version: 2.4.4.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26120.2415

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions