X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/6fc1f7bacd3f9fce894df6e40887a5ec247e106a..35000f728e66533de9b0cf6e8b040f9cdb82c1a7:/flake.nix?ds=sidebyside diff --git a/flake.nix b/flake.nix index 49594a7..4be7c77 100644 --- a/flake.nix +++ b/flake.nix @@ -10,16 +10,20 @@ ((import (nixpkgs + "/pkgs/top-level/release.nix") { }).stdenvBootstrapTools)); + in { + + overlay = final: prev: { git-cache = import ./. { pkgs = final; }; }; + overlays = { git-cache = self.overlay; }; + packages = for-supported-systems (system: { - git-cache = import ./. { pkgs = nixpkgs.legacyPackages."${system}"; }; + inherit (nixpkgs.legacyPackages."${system}".appendOverlays + [ self.overlay ]) + git-cache; }); - in { - inherit packages; - defaultApp = for-supported-systems (system: { type = "app"; - program = "${packages."${system}".git-cache}/bin/git-cache"; + program = "${self.packages."${system}".git-cache}/bin/git-cache"; }); }; }