depot/pkgs/tools/admin/pulumi-packages/pulumi-language-nodejs.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

30 lines
679 B
Nix

{ buildGoModule
, pulumi
, nodejs
}:
buildGoModule rec {
inherit (pulumi) version src;
pname = "pulumi-language-nodejs";
sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";
vendorHash = "sha256-L91qIud8dWx7dWWEcknKUSTJe+f4OBL8wBg6dKUWgkQ=";
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
];
}