about summary refs log tree commit diff
path: root/pkgs/kontemplate.nix
blob: 4f322c8178de1d60c90779c026383edcfe819c1f (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.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;
  };
}