1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00

Give into recursion

This commit is contained in:
Antonio Gurgel 2024-02-16 21:31:55 -08:00
parent e4f1c791cf
commit a5ab6192cb

View file

@ -1,19 +1,13 @@
{
kubelib,
pkgs,
}: let
parseYAMLsFile = p: kubelib.fromYAML (builtins.readFile p);
# This avoids making the output attrset recursive, which
# I avoid in large files.
}: rec {
builders = import ./builders.nix {inherit kubelib pkgs;};
fetchers = import ./fetchers.nix {inherit kubelib pkgs;};
in {
app-template = import ./app-template {inherit builders fetchers pkgs;};
inherit builders fetchers;
parseYAMLsFile = p: kubelib.fromYAML (builtins.readFile p);
parseYAMLFile = p: builtins.head (parseYAMLsFile p);
inherit parseYAMLsFile;
liftDefault = _: mod:
# haumea.lib.transformers.liftDefault uses pkgs.lib.attrsets.unionOfDisjoint,