3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/terraform/providers/default.nix

22 lines
530 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:
2018-01-10 21:49:31 +00:00
# azure-classic is an archived repo
if name == "azure-classic" then null
else toDrv data;
in
lib.mapAttrs maybeDrv list