From 27b677f1075ad71c69aca76858e9c56c3b1baa33 Mon Sep 17 00:00:00 2001 From: afreakk Date: Tue, 14 Mar 2023 19:13:59 +0100 Subject: [PATCH] pulumiPackages.pulumi-language-go: init at 3.53.1 --- pkgs/tools/admin/pulumi-packages/default.nix | 1 + .../pulumi-packages/pulumi-language-go.nix | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/admin/pulumi-packages/pulumi-language-go.nix 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; + }; +}