]> git.scottworley.com Git - git-cache/blame - flake.nix
Refuse force-pushes even if cache is cleared
[git-cache] / flake.nix
CommitLineData
6fc1f7ba
SW
1{
2 inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03"; };
3 outputs = { self, nixpkgs, }:
4 let
5
6 inherit (builtins) attrNames;
7 inherit (nixpkgs.lib) genAttrs;
8
9 for-supported-systems = genAttrs (attrNames
10 ((import (nixpkgs + "/pkgs/top-level/release.nix")
11 { }).stdenvBootstrapTools));
12
e388643b
C
13 in {
14
15 overlay = final: prev: { git-cache = import ./. { pkgs = final; }; };
16 overlays = { git-cache = self.overlay; };
17
6fc1f7ba 18 packages = for-supported-systems (system: {
9f453213
C
19 inherit (nixpkgs.legacyPackages."${system}".appendOverlays
20 [ self.overlay ])
21 git-cache;
6fc1f7ba
SW
22 });
23
6fc1f7ba
SW
24 defaultApp = for-supported-systems (system: {
25 type = "app";
e388643b 26 program = "${self.packages."${system}".git-cache}/bin/git-cache";
6fc1f7ba
SW
27 });
28 };
29}