2023-06-26 14:17:36 +02:00
|
|
|
{ buildGoModule
|
2022-11-23 03:38:43 +01:00
|
|
|
, 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";
|
|
|
|
|
2023-06-26 14:17:36 +02:00
|
|
|
sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";
|
2022-11-23 03:38:43 +01:00
|
|
|
|
2023-11-08 15:24:31 +01:00
|
|
|
vendorHash = "sha256-gEOVtAyn7v8tsRU11NgrD3swMFFBxOTIjMWCqSSvHlI=";
|
2023-10-24 18:06:00 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
2022-11-23 03:38:43 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
}
|