From c8aa3c2eb08d9871c23b159a2412383d08c35282 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 18 Aug 2023 10:13:07 +1200 Subject: [PATCH] feat: Add Nix support Creates symlinks to the relevant executables in the Nix store, for integration with IDEs and other tools. --- .gitignore | 3 +++ shell.nix | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 shell.nix diff --git a/.gitignore b/.gitignore index e5cd3fa3..b55e7c2d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ dist/ cdk.out/ cdk.context.json build/ +/helm +/kubectl +/node diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..31c34017 --- /dev/null +++ b/shell.nix @@ -0,0 +1,21 @@ +let + pkgs = import ( + builtins.fetchTarball { + url = "https://github.com/nixos/nixpkgs/archive/d934204a0f8d9198e1e4515dd6fec76a139c87f0.tar.gz"; + sha256 = "1zfby2jsfkag275aibp81bx1g1cc305qbcy94gqw0g6zki70k1lx"; + } + ) {}; +in + pkgs.mkShell { + packages = [ + pkgs.argo + pkgs.awscli2 + pkgs.bashInteractive + pkgs.kubectl + pkgs.kubernetes-helm + pkgs.nodejs + ]; + shellHook = '' + ln --force --symbolic "${pkgs.kubernetes-helm}/bin/helm" "${pkgs.kubectl}/bin/kubectl" "${pkgs.nodejs}/bin/node" . + ''; + }