depot/third_party/nixpkgs/pkgs/tools/admin/pulumi-packages/pulumi-language-nodejs.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

30 lines
692 B
Nix

{ buildGoModule
, pulumi
, nodejs
}:
buildGoModule rec {
inherit (pulumi) version src sdkVendorHash;
pname = "pulumi-language-nodejs";
sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";
vendorHash = "sha256-gbZoDUJCKb5wcLhJ7DRSGHT3Q0xUlptUeS6Wen4dle0";
postPatch = ''
# Gives github.com/pulumi/pulumi/pkg/v3: is replaced in go.mod, but not marked as replaced in vendor/modules.txt etc
substituteInPlace language_test.go \
--replace "TestLanguage" \
"SkipTestLanguage"
'';
ldflags = [
"-s"
"-w"
"-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}"
];
nativeCheckInputs = [
nodejs
];
}