1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/tanka/default.nix

35 lines
882 B
Nix
Raw Normal View History

2020-08-09 23:59:39 +01:00
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
2020-08-04 14:16:41 +01:00
buildGoModule rec {
pname = "tanka";
2021-02-06 20:57:06 +00:00
version = "0.14.0";
2020-08-04 14:16:41 +01:00
src = fetchFromGitHub {
owner = "grafana";
repo = pname;
rev = "v${version}";
2021-02-06 20:57:06 +00:00
sha256 = "sha256-y2HhtYKgC9Y397dZ14eQoPZxqS1fTOXVD8B4wdLIHzM=";
2020-08-04 14:16:41 +01:00
};
2021-02-06 20:57:06 +00:00
vendorSha256 = "sha256-vpm2y/CxRNWkz6+AOMmmZH5AjRQWAa6WD5Fnx5lqJYw=";
2020-08-04 14:16:41 +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;
};
}