mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-11 17:50:08 +01:00
fix(modules): fold was deprecated, replace with foldr
This commit is contained in:
parent
8a77208ebe
commit
8eadfb56ba
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
pipelineSubmodule,
|
pipelineSubmodule,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkOption types;
|
inherit (lib) mkOption types foldr;
|
||||||
in rec {
|
in rec {
|
||||||
configSubmodule = {
|
configSubmodule = {
|
||||||
options = {
|
options = {
|
||||||
|
|
@ -65,7 +65,7 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
packages = lib.fold (pipeline: acc: acc // pipeline) {} (
|
packages = foldr (pipeline: acc: acc // pipeline) {} (
|
||||||
map (pipeline: pipeline.packages) (builtins.attrValues config.pipelines)
|
map (pipeline: pipeline.packages) (builtins.attrValues config.pipelines)
|
||||||
);
|
);
|
||||||
soonix = config.config.soonix.finalConfig;
|
soonix = config.config.soonix.finalConfig;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue