mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
41 lines
1.1 KiB
Nix
41 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 ];
|
|
};
|
|
}
|