X-Git-Url: https://gitweb.ps.run/flakes/blobdiff_plain/37bbfd1fca0ea671a6b7ece05da27547102d6eb2..HEAD:/flake.nix diff --git a/flake.nix b/flake.nix index 54fab14..825ae50 100644 --- a/flake.nix +++ b/flake.nix @@ -1,11 +1,18 @@ { - description = "resetmsmice"; + description = "my flakes"; 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 { @@ -37,8 +44,10 @@ apps.resetmsmice = { type = "app"; - program = "${self.packages.${system}.default}/bin/resetmsmice"; + program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice"; }; - }); + }) + ) packages apps; + }; }