forked from mirrors/nixpkgs
terraform: filter out azure-classic while generating data.nix
This commit is contained in:
parent
5d4ab1baaa
commit
5bf656e33b
|
@ -35,13 +35,6 @@
|
|||
version = "1.30.0";
|
||||
sha256 = "1si2fm5nm7gad90lf410zwjf2q5kd8mv6nkkbfnfdzkpkchavr95";
|
||||
};
|
||||
azure-classic =
|
||||
{
|
||||
owner = "terraform-providers";
|
||||
repo = "terraform-provider-azure-classic";
|
||||
version = "0.1.1";
|
||||
sha256 = "11myqq3wnxvpysjycvwg7b14ll8d9vkn06xb3r26kmc42fkl5xv1";
|
||||
};
|
||||
azurerm =
|
||||
{
|
||||
owner = "terraform-providers";
|
||||
|
|
|
@ -16,10 +16,5 @@ let
|
|||
# if the versions are not provided via file paths.
|
||||
postBuild = "mv go/bin/${repo}{,_v${version}}";
|
||||
};
|
||||
|
||||
maybeDrv = name: data:
|
||||
# azure-classic is an archived repo
|
||||
if name == "azure-classic" then null
|
||||
else toDrv data;
|
||||
in
|
||||
lib.mapAttrs maybeDrv list
|
||||
lib.mapAttrs (n: v: toDrv v) list
|
||||
|
|
|
@ -71,7 +71,7 @@ fi
|
|||
|
||||
org=terraform-providers
|
||||
|
||||
repos=$(get_org_repos "$org" | grep terraform-provider- | grep -v terraform-provider-scaffolding | sort)
|
||||
repos=$(get_org_repos "$org" | grep terraform-provider- | grep -v terraform-provider-scaffolding | grep -v terraform-provider-azure-classic | sort)
|
||||
|
||||
|
||||
# Get all the providers with index
|
||||
|
|
Loading…
Reference in a new issue