2023-10-10 21:43:36 +03:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
perSystem = {
|
|
|
|
config,
|
|
|
|
self',
|
|
|
|
inputs',
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-10-12 01:03:15 +03:00
|
|
|
}: let
|
|
|
|
excludes = [
|
|
|
|
# NOT WORKING
|
|
|
|
# TODO: fix those
|
|
|
|
"nixpkgs-overrides"
|
|
|
|
"core"
|
|
|
|
"flags"
|
|
|
|
"ui"
|
|
|
|
"docs"
|
|
|
|
"env"
|
|
|
|
"assertions"
|
|
|
|
|
|
|
|
# doesn't need to be rendered
|
|
|
|
"_template"
|
|
|
|
];
|
|
|
|
in {
|
2023-10-11 02:39:06 +03:00
|
|
|
render.inputs =
|
|
|
|
lib.flip lib.mapAttrs
|
2023-10-12 01:03:15 +03:00
|
|
|
(lib.filterAttrs
|
|
|
|
(name: module:
|
|
|
|
! (lib.elem name excludes))
|
|
|
|
(self.modules.dream2nix))
|
2023-10-11 02:39:06 +03:00
|
|
|
(name: module: {
|
|
|
|
title = name;
|
|
|
|
module = self.modules.dream2nix.${name};
|
|
|
|
sourcePath = self;
|
|
|
|
attributePath = [
|
|
|
|
"dream2nix"
|
|
|
|
"modules"
|
|
|
|
"dream2nix"
|
|
|
|
(lib.strings.escapeNixIdentifier name)
|
|
|
|
];
|
2023-10-23 01:00:24 +03:00
|
|
|
intro =
|
2023-11-01 19:54:06 +03:00
|
|
|
if lib.pathExists (../dream2nix/${name}/README.md)
|
|
|
|
then lib.readFile (../dream2nix/${name}/README.md)
|
2023-10-23 01:00:24 +03:00
|
|
|
else "";
|
2023-10-10 21:43:36 +03:00
|
|
|
baseUrl = "https://github.com/nix-community/dream2nix/blob/master";
|
2023-10-11 02:39:06 +03:00
|
|
|
separateEval = true;
|
|
|
|
});
|
2023-10-10 21:43:36 +03:00
|
|
|
};
|
|
|
|
}
|