blob: 66bf20c2b843a6a8f91b3fe34e81dd0124006f60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ stdenv, lib, 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 {
name = "terraform-provider-ibm-${version}";
version = "0.10.0";
goPackagePath = "github.com/terraform-providers/terraform-provider-ibm";
subPackages = [ "./" ];
src = fetchFromGitHub {
owner = "IBM-Cloud";
repo = "terraform-provider-ibm";
sha256 = "03drvhhh6pkk8yzzp8iiq478kcky9swxvxadxzxh0v4jzdprg9lr";
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 ];
};
}
|