Skip to content

Commit

Permalink
Fix settings output
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Oct 23, 2024
1 parent 4f7abb6 commit 9b6a7fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/makeEnvironment.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ let

mkSubPackageMetadata = pkg: p:
let
meta = chooseMeta (pkg.packageOptions.${packageName p} or {});
settings = if lib.isAttrs p
then removeNonDefaultSettings (meta.settings_schema or {}) (lib.removeAttrs p ["name"])
else {};
in {
name = packageName p;
meta = chooseMeta (pkg.packageOptions.${packageName p} or {});
inherit meta;
} // lib.optionalAttrs (builtins.length (builtins.attrNames settings) > 0) {
inherit settings;
};
Expand Down

0 comments on commit 9b6a7fe

Please sign in to comment.