mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
30 lines
666 B
Nix
30 lines
666 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ipinfo";
|
|
version = "2.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "cli";
|
|
rev = "refs/tags/${pname}-${version}";
|
|
hash = "sha256-/CW+CmtKc96tVEh5cB6x+/Hb4WnbVi+3AZ0CEao0NE4=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
# Tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Command Line Interface for the IPinfo API";
|
|
homepage = "https://github.com/ipinfo/cli";
|
|
changelog = "https://github.com/ipinfo/cli/releases/tag/ipinfo-${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|