about summary refs log tree commit diff
path: root/pkgs/kontemplate.nix
blob: d6f686dcb8da19116d4e829b1dc4ff43fa6f3b9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Install the latest kontemplate version
with import <nixpkgs> {};

stdenv.mkDerivation {
  name = "kontemplate-1.3.0";

  src = fetchzip {
    url = "https://github.com/tazjin/kontemplate/releases/download/v1.3.0/kontemplate-1.3.0-98daa6b-linux-amd64.tar.gz";
    sha256 = "0byybdc1xli96rxyg3wf7548b055ca355qavi435riwlkmn9c5da";
  };

  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;
  };
}