2021-11-17 21:02:58 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "crd2pulumi";
|
2023-06-03 00:15:15 +00:00
|
|
|
version = "1.2.5";
|
2021-11-17 21:02:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pulumi";
|
|
|
|
repo = "crd2pulumi";
|
|
|
|
rev = "v${version}";
|
2023-06-03 00:15:15 +00:00
|
|
|
sha256 = "sha256-Km9zL9QQgQjmIaAILzJy8oSd9GyZn/MnmBYTRMFtXlE=";
|
2021-11-17 21:02:58 +00:00
|
|
|
};
|
|
|
|
|
2023-03-31 18:58:05 +00:00
|
|
|
vendorHash = "sha256-iWFZ20U4S2utIqhoXgLtT4pp5e9h8IpbveIKHPe0AAw=";
|
2021-11-17 21:02:58 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/pulumi/crd2pulumi/gen.Version=${src.rev}" ];
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate typed CustomResources from a Kubernetes CustomResourceDefinition";
|
|
|
|
homepage = "https://github.com/pulumi/crd2pulumi";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|