Skip to content

Commit

Permalink
Merge pull request #176619 from azahi/vultr
Browse files Browse the repository at this point in the history
vultr: use buildGoModule
  • Loading branch information
ajs124 authored Jun 22, 2022
2 parents 386c465 + fbf4943 commit 8ea5f3c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkgs/development/tools/vultr/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoPackage rec {
buildGoModule rec {
pname = "vultr";
version = "2.0.3";
goPackagePath = "github.com/JamesClonk/vultr";

src = fetchFromGitHub {
owner = "JamesClonk";
Expand All @@ -12,10 +14,16 @@ buildGoPackage rec {
sha256 = "sha256-kyB6gUbc32NsSDqDy1zVT4HXn0pWxHdBOEBOSaI0Xro=";
};

meta = {
description = "A command line tool for Vultr services, a provider for cloud virtual private servers";
homepage = "https://github.com/JamesClonk/vultr";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.zauberpony ];
vendorSha256 = null;

# There are not test files
doCheck = false;

meta = with lib; {
description = "Vultr CLI and API client library";
homepage = "https://jamesclonk.github.io/vultr";
changelog = "https://github.com/JamesClonk/vultr/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ zauberpony ];
};
}

0 comments on commit 8ea5f3c

Please sign in to comment.