about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2019-09-04T13·18+0100
committerGitHub <noreply@github.com>2019-09-04T13·18+0100
commitb41be36bb77e4221882fcedf31fed733d11c8431 (patch)
tree0d32625b78c4daeb29014c483a8e2e34d9102ab3 /default.nix
parent628cec34331ea7ef94a71f562a0dc1f8d49e9ecf (diff)
parent16b317fa5af70a5327ff79597e171f3407882cb4 (diff)
Merge pull request #6 from tazjin/fix/nixery-secrets-namespace r/81
Fix Nixery resources namespace & bump kontemplate
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/default.nix b/default.nix
index 3b5736a19261..0ace70da5bb0 100644
--- a/default.nix
+++ b/default.nix
@@ -57,10 +57,19 @@ let
     }) {}).elmPackages;
 
     # Wrap kontemplate to inject the Cloud KMS version of 'pass'
-    kontemplate = self.writeShellScriptBin "kontemplate" ''
-      export PATH="${self.tazjin.kms_pass}/bin:$PATH"
-      exec ${super.kontemplate}/bin/kontemplate $@
-    '';
+    kontemplate =
+      let master = super.kontemplate.overrideAttrs(_: {
+        src = self.fetchFromGitHub {
+          owner = "tazjin";
+          repo = "kontemplate";
+          rev = "v1.8.0";
+          sha256 = "123mjmmm4hynraq1fpn3j5i0a1i87l265kkjraxxxbl0zacv74i1";
+        };
+      });
+      in self.writeShellScriptBin "kontemplate" ''
+        export PATH="${self.tazjin.kms_pass}/bin:$PATH"
+        exec ${master}/bin/kontemplate $@
+      '';
 
     # One of Gemma's dependencies is missing in nixpkgs' Quicklisp
     # package set, it is overlaid locally here.