This is the preferred way to define packages in flakes according to
https://github.com/NixOS/rfcs/pull/49/files#r448298299
## [Unreleased]
+### Added
+- "overlay" and "overlays" flake outputs
## [1.2.3] - 2020-08-25
{ }).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";