depot/third_party/nixpkgs/pkgs/tools/admin/pulumi-packages/pulumi-language-nodejs.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

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