about summary refs log tree commit diff
path: root/services/cgit-taz/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'services/cgit-taz/default.nix')
-rw-r--r--services/cgit-taz/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix
index e59d076a2a6c..79cf579ec1d0 100644
--- a/services/cgit-taz/default.nix
+++ b/services/cgit-taz/default.nix
@@ -22,9 +22,16 @@ let
     repo.owner=tazjin <tazjin@google.com>
     repo.clone-url=https://git.tazj.in ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot
   '';
+
+  # Patched version of cgit that builds repository URLs correctly
+  # (since only one repository is served)
+  monocgit = cgit.overrideAttrs(old: {
+    patches = old.patches ++ [ ./cgit_depot_url.patch ];
+  });
+
   thttpdConfig = writeText "thttpd.conf" ''
     port=8080
-    dir=${cgit}/cgit
+    dir=${monocgit}/cgit
     nochroot
     novhost
     logfile=/dev/stdout