-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (32 loc) · 999 Bytes
/
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
{
description = "EKS Experiment";
inputs.utils.url = "github:numtide/flake-utils";
outputs = { self, utils, nixpkgs }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
packages.calicoctl = pkgs.stdenv.mkDerivation {
name = "calicoctl";
src = pkgs.fetchurl {
url = "https://github.com/projectcalico/calicoctl/releases/download/v3.16.0/calicoctl";
sha256 = "14qv4wv8ndz9g7v2bq8w1fgzw14dfhn5byzp5jqp6q26z9vp0qx7";
};
dontUnpack = true;
dontBuild = true;
installPhase = ''
cp $src calicoctl
install -Dm0755 calicoctl -t $out/bin
'';
};
devShell = with pkgs; mkShell {
nativeBuildInputs = [
self.packages.${system}.calicoctl
bashInteractive
mkcert
kubectl
kubelogin-oidc
terraform
];
};
});
}