about summary refs log tree commit diff
path: root/overrides/kontemplate/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overrides/kontemplate/default.nix')
-rw-r--r--overrides/kontemplate/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/overrides/kontemplate/default.nix b/overrides/kontemplate/default.nix
new file mode 100644
index 000000000000..74693c38377f
--- /dev/null
+++ b/overrides/kontemplate/default.nix
@@ -0,0 +1,19 @@
+{ pkgs, ... }:
+
+let master = pkgs.third_party.kontemplate.overrideAttrs(_: {
+  src = pkgs.third_party.fetchFromGitHub {
+    owner = "tazjin";
+    repo = "kontemplate";
+    rev = "v1.8.0";
+    sha256 = "123mjmmm4hynraq1fpn3j5i0a1i87l265kkjraxxxbl0zacv74i1";
+  };
+});
+in pkgs.third_party.writeShellScriptBin "kontemplate" ''
+  export PATH="${pkgs.ops.kms_pass}/bin:$PATH"
+
+  if [[ -z $1 ]]; then
+    exec ${master}/bin/kontemplate
+  fi
+
+  exec ${master}/bin/kontemplate $1 ${./../..}/ops/infra/kubernetes/primary-cluster.yaml ''${@:2}
+''