nixpkgs/pkgs/applications/networking/deck/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

{ buildGoModule, lib, installShellFiles, fetchFromGitHub }:
2023-09-28 03:11:51 +00:00
buildGoModule rec {
pname = "deck";
2024-01-31 13:02:16 +00:00
version = "1.32.1";
src = fetchFromGitHub {
owner = "Kong";
repo = "deck";
rev = "v${version}";
2024-01-31 13:02:16 +00:00
hash = "sha256-7lE/Wnrlv3L6V1ex+357q6XXpdx0810m1rKkqITowXY=";
};
nativeBuildInputs = [ installShellFiles ];
CGO_ENABLED = 0;
ldflags = [
"-s -w -X github.com/kong/deck/cmd.VERSION=${version}"
2023-09-28 03:11:51 +00:00
"-X github.com/kong/deck/cmd.COMMIT=${src.rev}"
];
2023-09-28 03:11:51 +00:00
proxyVendor = true; # darwin/linux hash mismatch
2024-01-31 13:02:16 +00:00
vendorHash = "sha256-D260T3E0aufOAqlN918SChv3aNDCFHfe2e0It1pcPiU=";
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 = "A configuration management and drift detection tool for Kong";
homepage = "https://github.com/Kong/deck";
license = licenses.asl20;
maintainers = with maintainers; [ liyangau ];
};
}