2022-11-23 03:38:43 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, pulumi
|
|
|
|
, nodejs
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
2022-12-18 11:12:42 +01:00
|
|
|
inherit (pulumi) version src sdkVendorHash;
|
2022-11-23 03:38:43 +01:00
|
|
|
|
|
|
|
pname = "pulumi-language-nodejs";
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/sdk";
|
|
|
|
|
2022-12-18 11:12:42 +01:00
|
|
|
vendorHash = sdkVendorHash;
|
2022-11-23 03:38:43 +01:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"nodejs/cmd/pulumi-language-nodejs"
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-11-23 03:38:43 +01:00
|
|
|
nodejs
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cp nodejs/dist/pulumi-resource-pulumi-nodejs $out/bin
|
|
|
|
cp nodejs/dist/pulumi-analyzer-policy $out/bin
|
|
|
|
'';
|
|
|
|
}
|