mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
31 lines
693 B
Nix
31 lines
693 B
Nix
{ buildGoModule
|
|
, pulumi
|
|
, nodejs
|
|
}:
|
|
buildGoModule rec {
|
|
inherit (pulumi) version src sdkVendorHash;
|
|
|
|
pname = "pulumi-language-nodejs";
|
|
|
|
sourceRoot = "${src.name}/sdk/nodejs/cmd/pulumi-language-nodejs";
|
|
|
|
vendorHash = "sha256-gEOVtAyn7v8tsRU11NgrD3swMFFBxOTIjMWCqSSvHlI=";
|
|
|
|
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
|
|
];
|
|
}
|