]> gitweb.ps.run Git - flakes/blobdiff - flake.nix
fix
[flakes] / flake.nix
index a2c8d6390554a2b1b8dd192352e755554fd0f5ee..ac4fea02a2ada37b3ecc54f170a5df857dbc46eb 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -4,8 +4,20 @@
   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
   inputs.flake-utils.url = "github:numtide/flake-utils";
 
-  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:
       let
         pkgs = import nixpkgs { inherit system; };
       in {
@@ -39,6 +51,8 @@
           type = "app";
           program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice";
         };
-      });
+      })
+    ) packages apps;
+  };
 }