forked from fediversity/fediversity
fix: work around weird stack trace
This commit is contained in:
parent
89b22df3a4
commit
42655c7968
1 changed files with 9 additions and 4 deletions
|
@ -111,9 +111,8 @@ in
|
||||||
implementation = cfg: {
|
implementation = cfg: {
|
||||||
input = cfg;
|
input = cfg;
|
||||||
output = lib.optionalAttrs cfg.enable {
|
output = lib.optionalAttrs cfg.enable {
|
||||||
resources.hello.login-shell.packages = {
|
# FIXME(@fricklerhandwerk): for some reason taking `pkgs.hello` directly stack overflows!
|
||||||
inherit (pkgs) hello;
|
resources.hello.login-shell.packages.hello = "${pkgs.hello}";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -163,14 +162,20 @@ in
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
number-of-resources = with lib; length (attrNames fediversity.resources);
|
||||||
config = fediversity.example-configuration;
|
config = fediversity.example-configuration;
|
||||||
resources = fediversity.applications.hello.implementation config.applications.hello;
|
hello-package-exists = lib.isStorePath (
|
||||||
|
toString (fediversity.applications.hello.resources config.applications.hello)
|
||||||
|
.resources.hello.login-shell.packages.hello
|
||||||
|
);
|
||||||
};
|
};
|
||||||
expected = {
|
expected = {
|
||||||
|
number-of-resources = 2;
|
||||||
config = {
|
config = {
|
||||||
enable = true;
|
enable = true;
|
||||||
applications.hello.enable = true;
|
applications.hello.enable = true;
|
||||||
};
|
};
|
||||||
|
hello-package-exists = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue