How to merge multiple packages attrsets from different aspects instead of letting the last include win ? #572
-
|
How can I merge packages defined in multiple aspects ? I've tried this: den.aspects.package_1.packages = { pkgs, ... }: {
package_1 = pkgs.writeShellApplication {
name = "package_1";
text = 'echo 1';
};
};
den.aspects.package_2.packages = { pkgs, ... }: {
package_2 = pkgs.writeShellApplication {
name = "package_2";
text = 'echo 2';
};
};
den.schema.flake-system = {
includes = [
den.aspects.package_1
den.aspects.package_2
];
};Which leads to just And also this: The Which makes some sense as it says it's only required when not using flake-parts which I am. Following the other steps doesn't work at all (no packages in output). I guess because the den.schema.flake-packages doesn't exist anymore and docs are outdated ? I can reproduce the same behavior as with my full config, but including I'm probably holding it wrong am I not ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Have you tried including them on # ANY Host or User aspect can produce outputs:
# The flake-system-to-flake-os policy handles host fan-out.
# To include aspects in flake outputs:
den.schema.flake-packages.includes = [ den.aspects.foo ]; |
Beta Was this translation helpful? Give feedback.
-
|
@sini Haven't had a chance to repro, but multiple users reporting. May be a regression? |
Beta Was this translation helpful? Give feedback.
@tristandruyen
Did you test with a version of den after this PR landed?
#574