depot/third_party/nixpkgs/pkgs/tools/admin/pulumi-packages/pulumi-command.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

33 lines
936 B
Nix

{ lib
, mkPulumiPackage
}:
mkPulumiPackage rec {
owner = "pulumi";
repo = "pulumi-command";
version = "0.7.1";
rev = "v${version}";
hash = "sha256-QrKtnpJGWoc5WwV6bnERrN3iBJpyoFKFwlqBtNNK7F8=";
vendorHash = "sha256-HyzWPRYfjdjGGBByCc8N91qWhX2QBJoQMpudHWrkmFM=";
cmdGen = "pulumi-gen-command";
cmdRes = "pulumi-resource-command";
extraLdflags = [
"-X github.com/pulumi/${repo}/provider/v4/pkg/version.Version=v${version}"
];
postConfigure = ''
pushd ..
${cmdGen} provider/cmd/pulumi-resource-command/schema.json --version ${version}
popd
'';
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "A Pulumi provider to execute commands and scripts either locally or remotely as part of the Pulumi resource model";
homepage = "https://github.com/pulumi/pulumi-command";
license = licenses.asl20;
maintainers = with maintainers; [ veehaitch trundle ];
};
}