bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ buildGoModule, lib, installShellFiles, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "deck";
|
|
version = "1.38.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kong";
|
|
repo = "deck";
|
|
rev = "v${version}";
|
|
hash = "sha256-9bEPkEeKOVFETSo5HEFWbuhx7+mWwogGm1jN18Vj/Sw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s -w -X github.com/kong/deck/cmd.VERSION=${version}"
|
|
"-X github.com/kong/deck/cmd.COMMIT=${src.rev}"
|
|
];
|
|
|
|
proxyVendor = true; # darwin/linux hash mismatch
|
|
vendorHash = "sha256-eWDnZNNXgvIiDiKEpkVEL/JpEfy7WKtSAUA6riCrMdc=";
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd deck \
|
|
--bash <($out/bin/deck completion bash) \
|
|
--fish <($out/bin/deck completion fish) \
|
|
--zsh <($out/bin/deck completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Configuration management and drift detection tool for Kong";
|
|
homepage = "https://github.com/Kong/deck";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ liyangau ];
|
|
};
|
|
}
|