1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Remove redundant null filters

This commit is contained in:
Robert Hensing 2022-09-28 19:13:41 +02:00
parent f17e9dba09
commit e511bc4812
5 changed files with 7 additions and 22 deletions

View file

@ -83,11 +83,8 @@ in
config = {
flake.apps =
mapAttrs
(k: v: v.apps)
(filterAttrs
(k: v: v.apps != null)
config.allSystems
);
(k: v: v.apps or { })
config.allSystems;
perInput = system: flake:
optionalAttrs (flake?apps.${system}) {

View file

@ -42,10 +42,7 @@ in
flake.checks =
mapAttrs
(k: v: v.checks)
(filterAttrs
(k: v: v.checks != null)
config.allSystems
);
config.allSystems;
perInput = system: flake:
optionalAttrs (flake?checks.${system}) {

View file

@ -43,10 +43,7 @@ in
flake.devShells =
mapAttrs
(k: v: v.devShells)
(filterAttrs
(k: v: v.devShells != null)
config.allSystems
);
config.allSystems;
perInput = system: flake:
optionalAttrs (flake?devShells.${system}) {

View file

@ -41,10 +41,7 @@ in
flake.legacyPackages =
mapAttrs
(k: v: v.legacyPackages)
(filterAttrs
(k: v: v.legacyPackages != null)
config.allSystems
);
config.allSystems;
perInput = system: flake:
optionalAttrs (flake?legacyPackages.${system}) {

View file

@ -42,11 +42,8 @@ in
config = {
flake.packages =
mapAttrs
(k: v: v.packages)
(filterAttrs
(k: v: v.packages != null)
config.allSystems
);
(k: v: v.packages or { })
config.allSystems;
perInput = system: flake:
optionalAttrs (flake?packages.${system}) {