about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-16T23·27+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-16T23·27+0200
commitcb33e5222ff6905c7a63c9f43b8bf1809a4dfc00 (patch)
treefe30dba55b9257a8d20a65974afbe50771f259d0
parent73bf498781cd23f5150e89335ebe77a5bb5430c6 (diff)
feat(pkgs): Install custom kontemplate package
-rw-r--r--packages.nix1
-rw-r--r--pkgs/kontemplate.nix22
2 files changed, 23 insertions, 0 deletions
diff --git a/packages.nix b/packages.nix
index aafa57ba75bf..25bdb0160e73 100644
--- a/packages.nix
+++ b/packages.nix
@@ -57,6 +57,7 @@ in {
     latest.rustChannels.stable.rust
 
     # Custom packages:
+    (import pkgs/kontemplate.nix)
     (import pkgs/nixfd.nix)
   ];
 }
diff --git a/pkgs/kontemplate.nix b/pkgs/kontemplate.nix
new file mode 100644
index 000000000000..4f322c8178de
--- /dev/null
+++ b/pkgs/kontemplate.nix
@@ -0,0 +1,22 @@
+# Install the latest kontemplate version
+with import <nixpkgs> {};
+
+stdenv.mkDerivation {
+  name = "kontemplate-1.2.0";
+
+  src = fetchzip {
+    url = "https://github.com/tazjin/kontemplate/releases/download/v1.2.0/kontemplate-1.2.0-f8b6ad6-linux-amd64.tar.gz";
+    sha256 = "09siirhr1m9lc91bkw4h4l1qpnjnl03yr5m9mjfxdkp5gzmkcb9r";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mv kontemplate $out/bin/kontemplate
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Extremely simple Kubernetes resource templates";
+    homepage = "http://kontemplate.works";
+    license = licenses.mit;
+  };
+}