nixpkgs/pkgs/applications/networking/cluster/terraform/providers/default.nix

22 lines
518 B
Nix
Raw Normal View History

{ 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