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