]> gitweb.ps.run Git - flakes/blobdiff - flake.nix
add gitweb overlay back
[flakes] / flake.nix
index 825ae50e0b56aa8588e8c3cf8e8daf9acdea1589..958cc373916fd82d8530f322ec93fd233b609b36 100644 (file)
--- a/flake.nix
+++ b/flake.nix
           postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
         });
       };
+      gitweb = final: prev: {
+        gitweb = prev.gitweb.overrideAttrs (oldAttrs: {
+          postPatch = (oldAttrs.postPatch or "") + ''
+            cp ${./patches/gitweb.perl} gitweb/gitweb.perl
+          '';
+        });
+      };
     };
     inherit (flake-utils.lib.eachDefaultSystem (system:
       let