3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #236839 from liyangau/master

deck: init at 1.22.0
This commit is contained in:
Pol Dellaiera 2023-06-12 16:32:16 +02:00 committed by GitHub
commit e94ae32f3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View file

@ -9220,6 +9220,12 @@
fingerprint = "74F5 E5CC 19D3 B5CB 608F 6124 68FF 81E6 A785 0F49";
}];
};
liyangau = {
email = "d@aufomm.com";
github = "liyangau";
githubId = 71299093;
name = "Li Yang";
};
lizelive = {
email = "nixpkgs@lize.live";
github = "lizelive";

View file

@ -0,0 +1,39 @@
{ buildGoModule, lib, installShellFiles, fetchFromGitHub }:
let
short_hash = "7447a09";
in buildGoModule rec {
pname = "deck";
version = "1.22.0";
src = fetchFromGitHub {
owner = "Kong";
repo = "deck";
rev = "v${version}";
hash = "sha256-BCx4bw+FrnH291sp52Dz+dc6cYtoLAt8fmdF6YbmgOE=";
};
nativeBuildInputs = [ installShellFiles ];
CGO_ENABLED = 0;
ldflags = [
"-s -w -X github.com/kong/deck/cmd.VERSION=${version}"
"-X github.com/kong/deck/cmd.COMMIT=${short_hash}"
];
vendorSha256 = "sha256-rir8z1IwQenTvihHWaA7dx6Nn45M82ulCNRJuQlUhEM=";
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 ];
};
}

View file

@ -4605,6 +4605,8 @@ with pkgs;
dduper = callPackage ../tools/filesystems/dduper { };
deck = callPackage ../applications/networking/deck { };
dedup = callPackage ../tools/backup/dedup { };
deheader = callPackage ../development/tools/misc/deheader { };