summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b9fb2c)
This is the preferred way to define packages in flakes according to
https://github.com/NixOS/rfcs/pull/49/files#r448298299
+### Added
+- "overlay" and "overlays" flake outputs
{ }).stdenvBootstrapTools));
packages = for-supported-systems (system: {
{ }).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;
});
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";
defaultApp = for-supported-systems (system: {
type = "app";
program = "${packages."${system}".git-cache}/bin/git-cache";