about summary refs log tree commit diff
path: root/web/cgit-taz/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-21T23·36+0000
committerVincent Ambo <tazjin@google.com>2019-12-21T23·36+0000
commit9ad47965387c63e287afac86c498566e37265248 (patch)
treef263eb41f0e403a271983ae7067f05251e8b3c4a /web/cgit-taz/default.nix
parent03acae2f85a1cda6057ab17549941c2ce16464ed (diff)
feat(cgit-taz): Add patches for subtree about/ handling r/289
1. Generate links to subtree about pages.
2. Render README files in subtrees, too.
Diffstat (limited to 'web/cgit-taz/default.nix')
-rw-r--r--web/cgit-taz/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/web/cgit-taz/default.nix b/web/cgit-taz/default.nix
index c615d3bcb866..7dc5d9070a14 100644
--- a/web/cgit-taz/default.nix
+++ b/web/cgit-taz/default.nix
@@ -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}