2018-03-17 23:13:13 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-12-09 19:10:05 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-03-17 23:13:13 +00:00
|
|
|
name = "kontemplate-${version}";
|
2018-06-09 23:03:02 +01:00
|
|
|
version = "1.6.0";
|
2017-12-09 19:10:05 +00:00
|
|
|
goPackagePath = "github.com/tazjin/kontemplate";
|
2018-03-17 23:13:13 +00:00
|
|
|
goDeps = ./deps.nix;
|
2017-12-09 19:10:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-03-17 23:13:13 +00:00
|
|
|
owner = "tazjin";
|
|
|
|
repo = "kontemplate";
|
|
|
|
rev = "v${version}";
|
2018-06-09 23:03:02 +01:00
|
|
|
sha256 = "06qcf2cxs686kd7iqccmqd5chdzxgbkav95byjim7sgvq9qjajfi";
|
2017-12-09 19:10:05 +00:00
|
|
|
};
|
|
|
|
|
2018-03-17 23:13:13 +00: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;
|
2017-12-09 19:10:05 +00:00
|
|
|
repositories.git = git://github.com/tazjin/kontemplate.git;
|
2018-03-17 23:13:13 +00: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 19:10:05 +00:00
|
|
|
};
|
|
|
|
}
|