mirror of
https://github.com/nix-community/flakelight.git
synced 2025-08-14 09:08:38 +02:00
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:
@ -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);
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user