X-Git-Url: http://git.scottworley.com/git-cache/blobdiff_plain/9f4532133d9e812f492207d61eaa871043193a39..c143afb995bcc31aa3720647aa7d641d4e171d53:/flake.nix diff --git a/flake.nix b/flake.nix index 195cc33..4be7c77 100644 --- a/flake.nix +++ b/flake.nix @@ -10,21 +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: { 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"; + program = "${self.packages."${system}".git-cache}/bin/git-cache"; }); }; }