nixpkgs/pkgs/by-name/tf/tf2pulumi/package.nix

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

30 lines
737 B
Nix
Raw Normal View History

2021-04-11 11:53:28 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tf2pulumi";
2023-06-28 01:54:51 +00:00
version = "0.12.0";
2021-04-11 11:53:28 +00:00
src = fetchFromGitHub {
owner = "pulumi";
repo = "tf2pulumi";
rev = "v${version}";
2023-06-28 01:54:51 +00:00
sha256 = "sha256-i6nK1AEnQY47ro6tNDBExdcb9WvltY/21FVrVaiSTvo=";
2021-04-11 11:53:28 +00:00
};
2023-06-28 01:54:51 +00:00
vendorHash = "sha256-x7GAkbvhML2VUQ9/zitrTBBiy9lISb3iTx6yn5WbEig=";
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";
mainProgram = "tf2pulumi";
2021-04-11 11:53:28 +00:00
homepage = "https://www.pulumi.com/tf2pulumi/";
license = licenses.asl20;
maintainers = with maintainers; [ mausch ];
};
}