X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/6fc1f7bacd3f9fce894df6e40887a5ec247e106a..98324ff8d2f79d7a30f2b2aa9a06e285ce8d926c:/flake.nix 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"; }); }; }