Skip to content

Commit

Permalink
feat: Add Nix support
Browse files Browse the repository at this point in the history
Creates symlinks to the relevant executables in the Nix store, for
integration with IDEs and other tools.
  • Loading branch information
l0b0 committed Oct 23, 2024
1 parent 9420533 commit 46e20b7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ dist/
cdk.out/
cdk.context.json
build/
/helm
/kubectl
/node
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,8 @@ These tags are intended to be use in production as they will be published for ea
### Using different versions

For each `Workflow` and `WorkflowTemplate`, there is a parameter `version_*` that allows to specify the version of the LINZ container to use.

## Development

1. Run `nix-shell` in the current directory to install all non-Node.js dependencies.
1. Run `npm install` to install Node.js dependencies.
20 changes: 20 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let
pkgs = import (builtins.fetchTarball {
name = "nixos-unstable-2024-09-17";
url = "https://github.com/nixos/nixpkgs/archive/345c263f2f53a3710abe117f28a5cb86d0ba4059.tar.gz";
sha256 = "1llzyzw7a0jqdn7p3px0sqa35jg24v5pklwxdybwbmbyr2q8cf5j";
}) { };
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" .
'';
}

0 comments on commit 46e20b7

Please sign in to comment.