feat(sterni/machines/edwin): categorize by project state in cgit

This should make it a bit clearer where not a lot is to be expected –
either yet or anymore.

Change-Id: I8139213814f2645f376ef2175aa2bc3721ee1e51
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7442
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
sterni 2022-11-27 15:00:06 +01:00 committed by clbot
parent f1271d46bf
commit ed9aa0c32a

View file

@ -4,41 +4,56 @@
let let
virtualHost = "code.sterni.lv"; virtualHost = "code.sterni.lv";
repos = { repoSections = [
spacecookie = { {
description = "gopher server (and library for Haskell)"; section = "active";
}; repos = {
gopher-proxy = { spacecookie = {
description = "Gopher over HTTP proxy"; description = "gopher server (and library for Haskell)";
}; };
emoji-generic = { };
description = "generic emoji library for Haskell (wip)"; }
}; {
grav2ty = { section = "poc";
description = "realistic 2d space game"; repos = {
}; emoji-generic = {
likely-music = { description = "generic emoji library for Haskell";
description = "experimental application for probabilistic music composition"; };
}; grav2ty = {
logbook = { description = "realistic 2d space game";
description = "file format for keeping a personal log"; };
}; haskell-dot-time = {
sternenblog = { description = "UTC-centric time library for haskell with dot time support";
description = "file based cgi blog software"; defaultBranch = "main";
}; };
haskell-dot-time = { buchstabensuppe = {
description = "UTC-centric time library for haskell with dot time support"; description = "toy font rendering for low pixelcount, high contrast displays";
defaultBranch = "main"; defaultBranch = "main";
}; };
buchstabensuppe = { };
description = "toy font rendering for low pixelcount, high contrast displays"; }
defaultBranch = "main"; {
}; section = "archive";
}; repos = {
gopher-proxy = {
description = "Gopher over HTTP proxy";
};
likely-music = {
description = "experimental application for probabilistic music composition";
};
logbook = {
description = "file format for keeping a personal log";
};
sternenblog = {
description = "file based cgi blog software";
};
};
}
];
cgitRepoEntry = name: repo: cgitRepoEntry = name: repo:
let let
repoName = repos.name or name; repoName = repo.name or name;
path = repo.path or "${repoName}.git"; path = repo.path or "${repoName}.git";
in in
lib.concatStringsSep "\n" ( lib.concatStringsSep "\n" (
@ -75,8 +90,7 @@ let
enable-blame=1 enable-blame=1
enable-commit-graph=1 enable-commit-graph=1
root-title=code root-title=code.sterni.lv
root-desc=sterni's git repositories
css=/cgit.css css=/cgit.css
head-include=${cgitHead} head-include=${cgitHead}
@ -87,7 +101,15 @@ let
readme=:README.md readme=:README.md
readme=:readme.md readme=:readme.md
${builtins.concatStringsSep "\n\n" (lib.mapAttrsToList cgitRepoEntry repos)} section-sort=0
${
lib.concatMapStringsSep "\n" (section:
''
section=${section.section}
''
+ builtins.concatStringsSep "\n\n" (lib.mapAttrsToList cgitRepoEntry section.repos)
) repoSections
}
''; '';
in in