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-08-15 20:34:10 +01:00
|
|
|
version = "1.7.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-08-15 20:34:10 +01:00
|
|
|
sha256 = "0vzircajhrfq1nykwpl52cqgzyhy51w4ff7ldpgi95w3a4fz1hzz";
|
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
|
|
|
};
|
|
|
|
}
|