2018-03-18 00:13:13 +01:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-12-09 20:10:05 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "kontemplate";
|
2019-09-09 19:48:16 +02:00
|
|
|
version = "1.8.0";
|
2017-12-09 20:10:05 +01:00
|
|
|
goPackagePath = "github.com/tazjin/kontemplate";
|
2018-03-18 00:13:13 +01:00
|
|
|
goDeps = ./deps.nix;
|
2017-12-09 20:10:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-03-18 00:13:13 +01:00
|
|
|
owner = "tazjin";
|
|
|
|
repo = "kontemplate";
|
|
|
|
rev = "v${version}";
|
2019-09-09 19:48:16 +02:00
|
|
|
sha256 = "123mjmmm4hynraq1fpn3j5i0a1i87l265kkjraxxxbl0zacv74i1";
|
2017-12-09 20:10:05 +01:00
|
|
|
};
|
|
|
|
|
2018-03-18 00:13:13 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extremely simple Kubernetes resource templates";
|
|
|
|
homepage = "http://kontemplate.works";
|
|
|
|
downloadPage = "https://github.com/tazjin/kontemplate/releases";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ mbode tazjin ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-01 03:11:51 +02:00
|
|
|
repositories.git = "git://github.com/tazjin/kontemplate.git";
|
2018-03-18 00:13:13 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Kontemplate is a simple CLI tool that can take sets of
|
|
|
|
Kubernetes resource files with placeholders and insert values
|
|
|
|
per environment.
|
|
|
|
|
|
|
|
It can be used as a simple way of deploying the same set of
|
|
|
|
resources to different Kubernetes contexts with context-specific
|
|
|
|
configuration.
|
|
|
|
'';
|
2017-12-09 20:10:05 +01:00
|
|
|
};
|
|
|
|
}
|