2020-08-09 23:59:39 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
|
2020-08-04 14:16:41 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tanka";
|
2020-11-12 06:49:50 +00:00
|
|
|
version = "0.12.0";
|
2020-08-04 14:16:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grafana";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-12 06:49:50 +00:00
|
|
|
sha256 = "1f67b236njz1qdxjyf2568vkigjmpylqlra29jlgm6vhd5qky7ia";
|
2020-08-04 14:16:41 +01:00
|
|
|
};
|
|
|
|
|
2020-11-12 06:49:50 +00:00
|
|
|
vendorSha256 = "1pr265g11lcviqw974lf05q52qrfpwnpn9a64q6088g0nfp4ly06";
|
2020-08-04 14:16:41 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-04 14:16:41 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
|
|
|
|
2020-08-09 23:59:39 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
echo "complete -C $out/bin/tk tk" > tk.bash
|
|
|
|
installShellCompletion tk.bash
|
|
|
|
'';
|
|
|
|
|
2020-08-04 14:16:41 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Flexible, reusable and concise configuration for Kubernetes";
|
|
|
|
homepage = "https://github.com/grafana/tanka/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mikefaille ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|