2017-09-01 15:49:24 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
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}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner repo sha256;
|
|
|
|
rev = "v${version}";
|
|
|
|
};
|
2017-09-01 15:49:24 +01:00
|
|
|
};
|
2017-09-08 19:36:43 +01:00
|
|
|
|
|
|
|
maybeDrv = name: data:
|
2018-01-10 21:49:31 +00:00
|
|
|
# azure-classic is an archived repo
|
|
|
|
if name == "azure-classic" then null
|
2017-09-08 19:36:43 +01:00
|
|
|
else toDrv data;
|
2017-09-01 15:49:24 +01:00
|
|
|
in
|
2017-09-08 19:36:43 +01:00
|
|
|
lib.mapAttrs maybeDrv list
|