nixpkgs/pkgs/development/tools/crd2pulumi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
718 B
Nix
Raw Normal View History

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 ];
};
}