1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

terraform-providers.elasticsearch: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:25:00 -05:00
parent d77fc69768
commit 8a51989af0
3 changed files with 6 additions and 1 deletions

View file

@ -3,6 +3,7 @@
, fetchFromGitHub
, callPackage
, buildGo112Module
, Security
}:
let
list = import ./data.nix;
@ -29,6 +30,7 @@ in
# verifying git.apache.org/thrift.git@v0.12.0/go.mod: git.apache.org/thrift.git@v0.12.0/go.mod: Get https://sum.golang.org/lookup/git.apache.org/thrift.git@v0.12.0: dial tcp: lookup sum.golang.org on [::1]:53: read udp [::1]:52968->[::1]:53: read: connection refused
# verifying github.com/hashicorp/terraform@v0.12.0/go.mod: github.com/hashicorp/terraform@v0.12.0/go.mod: Get https://sum.golang.org/lookup/github.com/hashicorp/terraform@v0.12.0: dial tcp: lookup sum.golang.org on [::1]:53: read udp [::1]:52968->[::1]:53: read: connection refused
buildGoModule = buildGo112Module;
inherit Security;
};
gandi = callPackage ./gandi {};
ibm = callPackage ./ibm {};

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "terraform-provider-elasticsearch";
version = "0.7.0";
@ -12,6 +12,8 @@ buildGoModule rec {
modSha256 = "1xk21xswqwpv34j4ba4fj8lcbvfdd12x7rq1hrdyd21mdhmrhw0p";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "." ];
# Terraform allow checking the provider versions, but this breaks

View file

@ -25969,6 +25969,7 @@ in
terraform-providers = recurseIntoAttrs (
callPackage ../applications/networking/cluster/terraform-providers {
inherit buildGo112Module;
inherit (darwin.apple_sdk.frameworks) Security;
}
);