- outputs = { self, nixpkgs, flake-utils }:
- flake-utils.lib.eachDefaultSystem (system:
+ outputs = { self, nixpkgs, flake-utils }: {
+ overlays = {
+ cgit = final: prev: {
+ cgit = prev.cgit.overrideAttrs (oldAttrs: {
+ postPatch = ''substituteInPlace ui-repolist.c --replace "master" "main"'';
+ });
+ };
+ gitweb = final: prev: {
+ gitweb = prev.gitweb.overrideAttrs (oldAttrs: {
+ patches = [ ./patches/gitweb.patch ];
+ });
+ };
+ };
+ inherit (flake-utils.lib.eachDefaultSystem (system: