X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/5b9fb2cc74808778004c96132d6a9e4ec175c768..9f4532133d9e812f492207d61eaa871043193a39:/flake.nix diff --git a/flake.nix b/flake.nix index 49594a7..195cc33 100644 --- a/flake.nix +++ b/flake.nix @@ -11,12 +11,17 @@ { }).stdenvBootstrapTools)); packages = for-supported-systems (system: { - git-cache = import ./. { pkgs = nixpkgs.legacyPackages."${system}"; }; + inherit (nixpkgs.legacyPackages."${system}".appendOverlays + [ self.overlay ]) + git-cache; }); in { inherit packages; + overlay = final: prev: { git-cache = import ./. { pkgs = final; }; }; + overlays = { git-cache = self.overlay; }; + defaultApp = for-supported-systems (system: { type = "app"; program = "${packages."${system}".git-cache}/bin/git-cache";