terraform-providers.ibm: move to update-all script

gstqt5
zimbatm 2020-04-26 13:06:38 +02:00
parent bb858898b1
commit 20f55a9fc0
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
4 changed files with 14 additions and 42 deletions

View File

@ -440,6 +440,14 @@
version = "1.14.0";
sha256 = "10g5xl3pspzmj0bjzqbw3br4k7kh2jplph06f7sz2zg9dncl4h5z";
};
ibm =
{
owner = "IBM-Cloud";
repo = "terraform-provider-ibm";
rev = "v1.4.0";
version = "1.4.0";
sha256 = "147vl55g6c49ihk8z2hwfq2v7g1yj35id1qfjlz0dxalm7cwa3l6";
};
icinga2 =
{
owner = "terraform-providers";

View File

@ -50,9 +50,10 @@ let
# These are the providers that don't fall in line with the default model
special-providers = {
# Override the google providers
# Override providers that use Go modules + vendor/ folder
google = patchGoModVendor automated-providers.google;
google-beta = patchGoModVendor automated-providers.google-beta;
ibm = patchGoModVendor automated-providers.ibm;
# providers that were moved to the `hashicorp` organization,
# but haven't updated their references yet:
@ -129,12 +130,12 @@ let
'';
});
elasticsearch = callPackage ./elasticsearch {};
# Packages that don't fit the default model
ansible = callPackage ./ansible {};
gandi = callPackage ./gandi {};
ibm = callPackage ./ibm {};
elasticsearch = callPackage ./elasticsearch {};
libvirt = callPackage ./libvirt {};
lxd = callPackage ./lxd {};
ansible = callPackage ./ansible {};
};
in
automated-providers // special-providers

View File

@ -1,38 +0,0 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
#
# USAGE:
# install the following package globally or in nix-shell:
#
# (terraform.withPlugins ( plugins: [ terraform-provider-ibm ]))
#
# examples:
# https://github.com/IBM-Cloud/terraform-provider-ibm/tree/master/examples
#
buildGoPackage rec {
pname = "terraform-provider-ibm";
version = "0.11.1";
goPackagePath = "github.com/terraform-providers/terraform-provider-ibm";
subPackages = [ "./" ];
src = fetchFromGitHub {
owner = "IBM-Cloud";
repo = "terraform-provider-ibm";
sha256 = "1vp1kzadfkacn6c4illxjra8yki1fx7h77b38fixkcvc79mzasmv";
rev = "v${version}";
};
# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/terraform-provider-ibm{,_v${version}}";
meta = with stdenv.lib; {
homepage = "https://github.com/IBM-Cloud/terraform-provider-ibm";
description = "Terraform provider is used to manage IBM Cloud resources.";
platforms = platforms.all;
license = licenses.mpl20;
maintainers = with maintainers; [ jensbin ];
};
}

View File

@ -112,6 +112,7 @@ cd "$(dirname "$0")"
# individual repos to fetch
slugs=(
IBM-Cloud/terraform-provider-ibm
ajbosco/terraform-provider-segment
camptocamp/terraform-provider-pass
poseidon/terraform-provider-matchbox