9f2ff1d31a
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.
21 lines
518 B
Nix
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
|