gytis-ivaskevicius / flake-utils-plus

Use Nix flakes without any fluff.
MIT License
485 stars 57 forks source link

Devshell attribute 'x86_64-linux' missing #133

Closed ravensiris closed 1 year ago

ravensiris commented 1 year ago

Recent nix flake update got me this error message:

error: attribute 'x86_64-linux' missing

       at /nix/store/233086pcwz4qx09l1xgdlzn2yh1p04zy-source/lib/mkFlake.nix:208:74:

          207|         # For some odd reason `devshell` contains `legacyPackages` out put as well
          208|         channelFlakes = filterAttrs (_: value: value ? legacyPackages && value.legacyPackages.x86_64-linux ? nix) inputs;
             |                                                                          ^
          209|         channelsFromFlakes = mapAttrs (name: input: { inherit input; }) channelFlakes;
(use '--show-trace' to show detailed location information)

Source of the issue is here:

https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a/lib/mkFlake.nix#L206-L208C13

I think it might be due to recent changes here: https://github.com/numtide/devshell/pull/259