🐛 Check all attributes for devshell legacyPackages

This commit is contained in:
Maksymilian Jodłowski 2023-05-13 19:45:06 +02:00
parent 2bf0f91643
commit 7a8d789d4d

View File

@ -205,7 +205,7 @@ mergeAny otherArguments (
# Little hack, we make sure that `legacyPackages` contains `nix` to make sure that we are dealing with nixpkgs.
# For some odd reason `devshell` contains `legacyPackages` out put as well
channelFlakes = filterAttrs (_: value: value ? legacyPackages && value.legacyPackages.x86_64-linux ? nix) inputs;
channelFlakes = filterAttrs (_: value: value ? legacyPackages && value.legacyPackages ? x86_64-linux && value.legacyPackages.x86_64-linux ? nix) inputs;
channelsFromFlakes = mapAttrs (name: input: { inherit input; }) channelFlakes;
importChannel = name: value: (import (patchChannel system value.input (value.patches or [ ])) {