2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, mkPulumiPackage
|
|
|
|
}:
|
|
|
|
mkPulumiPackage rec {
|
|
|
|
owner = "pulumi";
|
|
|
|
repo = "pulumi-command";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-VnbtPhMyTZ4Oy+whOK6Itr2vqUagwZUODONL13fjMaU=";
|
|
|
|
vendorHash = "sha256-MBWDEVA29uzHD3B/iPe68ntGjMM1SCTDq/TL+NgMc6c=";
|
2023-03-04 12:14:45 +00:00
|
|
|
cmdGen = "pulumi-gen-command";
|
|
|
|
cmdRes = "pulumi-resource-command";
|
|
|
|
extraLdflags = [
|
2023-10-09 19:29:22 +00:00
|
|
|
"-X github.com/pulumi/${repo}/provider/pkg/version.Version=v${version}"
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
pushd ..
|
|
|
|
|
|
|
|
${cmdGen} provider/cmd/pulumi-resource-command/schema.json --version ${version}
|
|
|
|
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Pulumi provider to execute commands and scripts either locally or remotely as part of the Pulumi resource model";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pulumi-resource-command";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/pulumi/pulumi-command";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ veehaitch trundle ];
|
|
|
|
};
|
|
|
|
}
|