blob: 3b181ceb05b0da1d7afecf2d36df83f168d81c6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ 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 ];
};
}
|