Skip to content

Commit

Permalink
Update channels selection filter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis-ivaskevicius authored and blaggacao committed Sep 5, 2021
1 parent e1eddbd commit cb44a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mkFlake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,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.x86_64-linux ? nix) inputs;
channelFlakes = filterAttrs (_: value: value ? legacyPackages && 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 [ ])) {
Expand Down

0 comments on commit cb44a3f

Please sign in to comment.