mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 07:43:43 +00:00
36 lines
712 B
Nix
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 ];
|
|
};
|
|
}
|