X-Git-Url: https://gitweb.ps.run/flakes/blobdiff_plain/4e1a80402d5699a4b512e9b12f6d710c0fd6332d..a047da530c53b11a36b103c5d898822e167b93d2:/flake.nix diff --git a/flake.nix b/flake.nix index 6c18c4f..53cc18d 100644 --- a/flake.nix +++ b/flake.nix @@ -4,12 +4,23 @@ 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 { - packages.default = pkgs.stdenv.mkDerivation { + packages.resetmsmice = pkgs.stdenv.mkDerivation { pname = "resetmsmice"; version = "0.0.0"; src = pkgs.fetchFromGitHub { @@ -35,10 +46,12 @@ ''; }; - apps.default = { + apps.resetmsmice = { type = "app"; - program = "${self.packages.${system}.default}/bin/resetmsmice"; + program = "${self.packages.${system}.resetmsmice}/bin/resetmsmice"; }; - }); + }) + ) packages apps; + }; }