depot/third_party/nixpkgs/pkgs/development/tools/tf2pulumi/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

28 lines
723 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tf2pulumi";
version = "0.10.0";
src = fetchFromGitHub {
owner = "pulumi";
repo = "tf2pulumi";
rev = "v${version}";
sha256 = "199c4hd236mfz9c44rpzpbr3w3fjj8pbw656jd9k3v2igzw942c7";
};
vendorSha256 = "1cwyag67q0361szfjv1cyi51cg1bbmkpy34y33hn53aa55pkm1fw";
buildFlagsArray = ''
-ldflags=-s -w -X=github.com/pulumi/tf2pulumi/version.Version=${src.rev}
'';
subPackages = [ "." ];
meta = with lib; {
description = "Convert Terraform projects to Pulumi TypeScript programs";
homepage = "https://www.pulumi.com/tf2pulumi/";
license = licenses.asl20;
maintainers = with maintainers; [ mausch ];
};
}