X-Git-Url: https://gitweb.ps.run/flakes/blobdiff_plain/352244457cdc7d2af63da2cc04be8c9105c5e2c8..57c8dc1d3b56bdfa5071cfea5bf5261e3fac915d:/flake.nix diff --git a/flake.nix b/flake.nix index a2c8d63..11a976b 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,15 @@ 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"''; + }); + }; + }; + inherit (flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; in { @@ -40,5 +47,7 @@ program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice"; }; }); + ) + }; }