Merge pull request #134 from ravensiris/ravensiris/fix-devshell-legacy-packages

🐛 Check all attributes for devshell legacyPackages
This commit is contained in:
Gytis Ivaskevicius 2023-10-02 21:50:29 +03:00 committed by GitHub
commit 2893fcad90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 [ ])) {