nixpkgs/pkgs/applications/networking/cluster/terraform/providers/default.nix
zimbatm 9f2ff1d31a terraform: revamp the providers list (#29097)
This fixes the ./update-all script to actually fetch all the available
providers (thanks pagination). It was also improver to user a more
compact representation of the data.
2017-09-08 19:36:43 +01:00

21 lines
518 B
Nix

{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
let
list = import ./data.nix;
toDrv = data:
buildGoPackage rec {
inherit (data) owner repo version sha256;
name = "${repo}-${version}";
goPackagePath = "github.com/${owner}/${repo}";
src = fetchFromGitHub {
inherit owner repo sha256;
rev = "v${version}";
};
};
maybeDrv = name: data:
# vsphere is currently broken
if name == "vsphere" then null
else toDrv data;
in
lib.mapAttrs maybeDrv list