diff --git a/pkgs/tools/admin/pulumi-packages/default.nix b/pkgs/tools/admin/pulumi-packages/default.nix index 588214980782..5aed6b171783 100644 --- a/pkgs/tools/admin/pulumi-packages/default.nix +++ b/pkgs/tools/admin/pulumi-packages/default.nix @@ -7,6 +7,7 @@ in pulumi-aws-native = callPackage' ./pulumi-aws-native.nix { }; pulumi-azure-native = callPackage' ./pulumi-azure-native.nix { }; pulumi-command = callPackage' ./pulumi-command.nix { }; + pulumi-language-go = callPackage ./pulumi-language-go.nix { }; pulumi-language-nodejs = callPackage ./pulumi-language-nodejs.nix { }; pulumi-language-python = callPackage ./pulumi-language-python.nix { }; pulumi-random = callPackage' ./pulumi-random.nix { }; diff --git a/pkgs/tools/admin/pulumi-packages/pulumi-language-go.nix b/pkgs/tools/admin/pulumi-packages/pulumi-language-go.nix new file mode 100644 index 000000000000..b43fdbe67270 --- /dev/null +++ b/pkgs/tools/admin/pulumi-packages/pulumi-language-go.nix @@ -0,0 +1,27 @@ +{ lib +, buildGoModule +, pulumi +}: +buildGoModule rec { + pname = "pulumi-language-go"; + inherit (pulumi) version src; + + sourceRoot = "${src.name}/sdk"; + + vendorHash = pulumi.sdkVendorHash; + + subPackages = [ + "go/pulumi-language-go" + ]; + + ldflags = [ + "-s" + "-w" + "-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}" + ]; + meta = with lib; { + description = "Golang language host plugin for Pulumi"; + homepage = "https://github.com/pulumi/pulumi/tree/master/sdk/go"; + license = licenses.asl20; + }; +}