at 23.11-beta 39 lines 1.0 kB view raw
1{ buildGoModule, lib, installShellFiles, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "deck"; 5 version = "1.28.0"; 6 7 src = fetchFromGitHub { 8 owner = "Kong"; 9 repo = "deck"; 10 rev = "v${version}"; 11 hash = "sha256-glCZdaIsV8bim3iQuFKlIVmDm/YhDohVC6wIYvQuJAM="; 12 }; 13 14 nativeBuildInputs = [ installShellFiles ]; 15 16 CGO_ENABLED = 0; 17 18 ldflags = [ 19 "-s -w -X github.com/kong/deck/cmd.VERSION=${version}" 20 "-X github.com/kong/deck/cmd.COMMIT=${src.rev}" 21 ]; 22 23 proxyVendor = true; # darwin/linux hash mismatch 24 vendorHash = "sha256-tDaFceewyNW19HMmfdDC2qL12hUCw5TUa3TX5TXfvVo="; 25 26 postInstall = '' 27 installShellCompletion --cmd deck \ 28 --bash <($out/bin/deck completion bash) \ 29 --fish <($out/bin/deck completion fish) \ 30 --zsh <($out/bin/deck completion zsh) 31 ''; 32 33 meta = with lib; { 34 description = "A configuration management and drift detection tool for Kong"; 35 homepage = "https://github.com/Kong/deck"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ liyangau ]; 38 }; 39}