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

27 lines
720 B
Nix
Raw Normal View History

2021-11-17 22:02:58 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "crd2pulumi";
2022-02-12 05:48:41 +01:00
version = "1.2.0";
2021-11-17 22:02:58 +01:00
src = fetchFromGitHub {
owner = "pulumi";
repo = "crd2pulumi";
rev = "v${version}";
2022-02-12 05:48:41 +01:00
sha256 = "sha256-jGCtHDceJMGG2WHRldEyToZRNp3ZTt4Tir7DAsaWgfI=";
2021-11-17 22:02:58 +01:00
};
2022-01-11 06:10:19 +01:00
vendorSha256 = "sha256-XM1uedApVLkFzUpNPYS5YyMiWrOpzTvqKjWIV7s/1mI=";
2021-11-17 22:02:58 +01: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 ];
};
}