-
Notifications
You must be signed in to change notification settings - Fork 97
/
flake.nix
65 lines (62 loc) · 2.03 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
inputs = {
nixpkgs.url = "nixpkgs";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
inputs@{ self
, nixpkgs
, nixpkgs-unstable
, flake-parts
, ...
}: flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "aarch64-darwin" "x86_64-linux" ];
perSystem = { self', system, ... }:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
chart-releaser = pkgs.callPackage ./.github/chart-releaser.nix { };
chart-testing = pkgs.callPackage ./.github/chart-testing.nix { };
docker-tag-list = pkgs.callPackage ./.github/docker-tag-list.nix { };
helm-3-10-3 = pkgs.callPackage ./.github/helm.nix { };
setup-envtest = pkgs.callPackage ./.github/setup-envtest.nix { };
kubernetes-helm = prev.wrapHelm prev.kubernetes-helm {
plugins = [ prev.kubernetes-helmPlugins.helm-unittest ];
};
})
];
};
in
{
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.actionlint # Github Workflow definition linter https://github.com/rhysd/actionlint
pkgs.chart-releaser
pkgs.chart-testing
pkgs.docker-tag-list # Utility to list out docker tags
pkgs.dyff
pkgs.gh # Github CLI
pkgs.git
pkgs.go
pkgs.go-task
pkgs.go-tools
pkgs.gofumpt
pkgs.helm-3-10-3
pkgs.helm-docs
pkgs.jq # CLI JSON swiss army knife
pkgs.kind
pkgs.kube-linter
pkgs.kubectl
pkgs.kubernetes-helm
pkgs.kustomize
pkgs.setup-envtest
pkgs.yq # jq but for YAML
];
};
};
};
}