nixpkgs/pkgs/by-name/kp/kpt/package.nix
2024-11-17 06:06:05 +08:00

36 lines
712 B
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "kpt";
version = "1.0.0-beta.55";
src = fetchFromGitHub {
owner = "kptdev";
repo = pname;
rev = "v${version}";
hash = "sha256-MVrJUsMpt1L56ezy2b2G6Aac9kpe4QgfSosR+PeTuBQ=";
};
vendorHash = "sha256-2jJCvBtTiIYmpxA92p8eZnKl1UO74pKr1YFRH14keZY=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X github.com/kptdev/kpt/run.version=${version}"
];
meta = {
description = "Automate Kubernetes Configuration Editing";
mainProgram = "kpt";
homepage = "https://github.com/kptdev/kpt";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ mikefaille ];
};
}