Remove checking of meta.platforms

Previously, meta.platforms would be checked for each package when
generating package attributes for a system, so that unsupported packages
would not have an output attribute. This commit removes that behavior.

Now `nix flake show` will succeed even if packages fail to evaluate on
other platforms. `nix flake show --all-systems` will still fail though.
This commit is contained in:
Archit Gupta
2024-03-24 14:23:41 -07:00
parent fe5916eb40
commit 3a364f9cdd
3 changed files with 6 additions and 14 deletions

View File

@ -4,10 +4,9 @@
{ config, lib, flakelight, genSystems, moduleArgs, ... }:
let
inherit (lib) filterAttrs functionArgs mapAttrs mkIf mkMerge mkOption;
inherit (lib) functionArgs mapAttrs mkIf mkMerge mkOption;
inherit (lib.types) coercedTo lazyAttrsOf lines listOf
package str submoduleWith;
inherit (flakelight) supportedSystem;
inherit (flakelight.types) function nullable optCallWith optFunctionTo;
devShellModule.options = {
@ -82,8 +81,7 @@ in
(mkIf (config.devShells != { }) {
outputs.devShells = genSystems (pkgs:
filterAttrs (_: supportedSystem pkgs)
(mapAttrs (_: v: genDevShell pkgs (v pkgs)) config.devShells));
mapAttrs (_: v: genDevShell pkgs (v pkgs)) config.devShells);
})
];
}