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

29 lines
708 B
Nix
Raw Normal View History

2021-04-11 11:53:28 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tf2pulumi";
2021-08-23 05:26:15 +00:00
version = "0.11.1";
2021-04-11 11:53:28 +00:00
src = fetchFromGitHub {
owner = "pulumi";
repo = "tf2pulumi";
rev = "v${version}";
2021-08-23 05:26:15 +00:00
sha256 = "sha256-4sEsWMkGRpB3gMGUOPh7n/nNwEp+ErKQK0qcT5ImaZ4=";
2021-04-11 11:53:28 +00:00
};
2021-08-23 05:26:15 +00:00
vendorSha256 = "sha256-wsgNrDnFXbpanEULEjf6OxOeMYmWzjE7vpVUB/UFNp8=";
2021-04-11 11:53:28 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
"-s" "-w" "-X=github.com/pulumi/tf2pulumi/version.Version=${src.rev}"
];
2021-04-11 11:53:28 +00:00
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 ];
};
}