mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Merge pull request #58 from hercules-ci/remove-redundant-null-filters
Remove redundant null filters
This commit is contained in:
commit
45298bd207
5 changed files with 7 additions and 22 deletions
|
@ -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}) {
|
||||
|
|
|
@ -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}) {
|
||||
|
|
|
@ -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}) {
|
||||
|
|
|
@ -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}) {
|
||||
|
|
|
@ -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}) {
|
||||
|
|
Loading…
Reference in a new issue