feat(cgit-taz): Add patches for subtree about/ handling
1. Generate links to subtree about pages. 2. Render README files in subtrees, too.
This commit is contained in:
parent
03acae2f85
commit
9ad4796538
5 changed files with 123 additions and 4 deletions
|
|
@ -9,10 +9,13 @@
|
|||
with pkgs.third_party;
|
||||
|
||||
let
|
||||
# Patched version of cgit that builds repository URLs correctly
|
||||
# (since only one repository is served)
|
||||
# Patched version of cgit that has monorepo-specific features.
|
||||
monocgit = cgit.overrideAttrs(old: {
|
||||
patches = old.patches ++ [ ./cgit_depot_url.patch ];
|
||||
patches = old.patches ++ [
|
||||
./0001-cgit_monorepo_urls.patch
|
||||
./0002-cgit_subtree_readmes.patch
|
||||
./0003-cgit_subtree_about_links.patch
|
||||
];
|
||||
});
|
||||
|
||||
cgitConfig = writeText "cgitrc" ''
|
||||
|
|
@ -68,7 +71,10 @@ let
|
|||
#ifdef CGI_LD_LIBRARY_PATH
|
||||
'';
|
||||
thttpdCgit = thttpd.overrideAttrs(old: {
|
||||
patches = [ ./cgit_idx.patch thttpdConfigPatch ];
|
||||
patches = [
|
||||
./thttpd_cgi_idx.patch
|
||||
thttpdConfigPatch
|
||||
];
|
||||
});
|
||||
in writeShellScriptBin "cgit-launch" ''
|
||||
exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue