mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
9cf0c29869
https://github.com/pulumi/pulumi-azure-native/releases/tag/v2.12.0 https://github.com/pulumi/pulumi-azure-native/releases/tag/v2.13.0
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";
|
|
homepage = "https://github.com/pulumi/pulumi-azure-native";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ veehaitch trundle ];
|
|
};
|
|
}
|