2018-09-28 19:28:38 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, callPackage
|
2019-09-16 23:47:28 +01:00
|
|
|
, buildGo112Module
|
2018-09-28 19:28:38 +01:00
|
|
|
}:
|
2017-09-01 15:49:24 +01:00
|
|
|
let
|
|
|
|
list = import ./data.nix;
|
2017-09-08 19:36:43 +01:00
|
|
|
|
|
|
|
toDrv = data:
|
2017-09-01 15:49:24 +01:00
|
|
|
buildGoPackage rec {
|
2017-09-08 19:36:43 +01:00
|
|
|
inherit (data) owner repo version sha256;
|
|
|
|
name = "${repo}-${version}";
|
|
|
|
goPackagePath = "github.com/${owner}/${repo}";
|
2019-01-18 17:49:19 +00:00
|
|
|
subPackages = [ "." ];
|
2017-09-08 19:36:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner repo sha256;
|
|
|
|
rev = "v${version}";
|
|
|
|
};
|
2019-09-16 23:47:28 +01:00
|
|
|
|
2018-02-06 21:09:22 +00:00
|
|
|
|
|
|
|
# Terraform allow checking the provider versions, but this breaks
|
|
|
|
# if the versions are not provided via file paths.
|
|
|
|
postBuild = "mv go/bin/${repo}{,_v${version}}";
|
2017-09-01 15:49:24 +01:00
|
|
|
};
|
|
|
|
in
|
2018-09-28 19:28:38 +01:00
|
|
|
{
|
2019-09-16 23:47:28 +01:00
|
|
|
elasticsearch = callPackage ./elasticsearch {
|
|
|
|
# Version 0.7.0 fails to build with go 1.13 due to dependencies:
|
|
|
|
# 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;
|
|
|
|
};
|
2018-10-11 20:53:30 +01:00
|
|
|
gandi = callPackage ./gandi {};
|
2018-09-28 19:28:38 +01:00
|
|
|
ibm = callPackage ./ibm {};
|
|
|
|
libvirt = callPackage ./libvirt {};
|
2019-07-25 12:58:42 +01:00
|
|
|
ansible = callPackage ./ansible {};
|
2018-09-28 19:28:38 +01:00
|
|
|
} // lib.mapAttrs (n: v: toDrv v) list
|