587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib
|
|
, mkPulumiPackage
|
|
}:
|
|
mkPulumiPackage rec {
|
|
owner = "pulumi";
|
|
repo = "pulumi-azure-native";
|
|
version = "2.13.0";
|
|
rev = "v${version}";
|
|
hash = "sha256-YyJxACeXyY7hZkTbLXT/ASNWa1uv9h3cvPoItR183fU=";
|
|
vendorHash = "sha256-20wHbNE/fenxP9wgTSzAnx6b1UYlw4i1fi6SesTs0sc=";
|
|
cmdGen = "pulumi-gen-azure-native";
|
|
cmdRes = "pulumi-resource-azure-native";
|
|
extraLdflags = [
|
|
"-X github.com/pulumi/${repo}/v2/provider/pkg/version.Version=${version}"
|
|
];
|
|
postConfigure = ''
|
|
pushd ..
|
|
|
|
chmod +w . provider/cmd/${cmdRes} sdk/
|
|
chmod -R +w reports/ versions/
|
|
mkdir bin
|
|
${cmdGen} schema ${version}
|
|
|
|
cp bin/schema-full.json provider/cmd/${cmdRes}
|
|
cp bin/metadata-compact.json provider/cmd/${cmdRes}
|
|
|
|
popd
|
|
|
|
VERSION=v${version} go generate cmd/${cmdRes}/main.go
|
|
'';
|
|
fetchSubmodules = true;
|
|
__darwinAllowLocalNetworking = true;
|
|
meta = with lib; {
|
|
description = "Native Azure Pulumi Provider";
|
|
mainProgram = "pulumi-resource-azure-native";
|
|
homepage = "https://github.com/pulumi/pulumi-azure-native";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ veehaitch trundle ];
|
|
};
|
|
}
|