depot/third_party/nixpkgs/pkgs/tools/admin/pulumi-packages/pulumi-language-nodejs.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

33 lines
564 B
Nix

{ 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}"
];
checkInputs = [
nodejs
];
postInstall = ''
cp nodejs/dist/pulumi-resource-pulumi-nodejs $out/bin
cp nodejs/dist/pulumi-analyzer-policy $out/bin
'';
}