depot/pkgs/tools/admin/pulumi-packages/pulumi-language-python.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

35 lines
783 B
Nix

{ buildGoModule
, pulumi
, python3
}:
buildGoModule rec {
inherit (pulumi) version src;
pname = "pulumi-language-python";
sourceRoot = "${src.name}/sdk/python/cmd/pulumi-language-python";
vendorHash = "sha256-Q8nnYJJN5+W2luY8JQJj1X9KIk9ad511FBywr+0wBNg=";
postPatch = ''
substituteInPlace main_test.go \
--replace "TestDeterminePulumiPackages" \
"SkipTestDeterminePulumiPackages"
'';
ldflags = [
"-s"
"-w"
"-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}"
];
nativeCheckInputs = [
python3
];
postInstall = ''
cp ../pulumi-language-python-exec $out/bin
cp ../../dist/pulumi-resource-pulumi-python $out/bin
cp ../../dist/pulumi-analyzer-policy-python $out/bin
'';
}