From: Chuck Date: Mon, 19 Apr 2021 22:38:48 +0000 (-0700) Subject: Refactor: Move packages definition into main flake output attrset X-Git-Tag: v1.3.0~1 X-Git-Url: http://git.scottworley.com/git-cache/commitdiff_plain/e388643be681cca2db3c51f1a55210735865a4be?ds=inline Refactor: Move packages definition into main flake output attrset --- 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"; }); }; }