2021-05-14 10:27:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ipinfo";
|
2023-10-11 13:41:28 +00:00
|
|
|
version = "3.1.2";
|
2021-05-14 10:27:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "cli";
|
2023-02-07 09:16:11 +00:00
|
|
|
rev = "refs/tags/${pname}-${version}";
|
2023-10-11 13:41:28 +00:00
|
|
|
hash = "sha256-KCdKfZs1u3ZLaG+Lmod/vV0T0LaW8hs4ReGlVA7A9pA=";
|
2021-05-14 10:27:13 +00:00
|
|
|
};
|
|
|
|
|
2023-09-01 02:10:52 +00:00
|
|
|
vendorHash = null;
|
2021-05-14 10:27:13 +00:00
|
|
|
|
2021-06-10 18:11:15 +00:00
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-05-14 10:27:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command Line Interface for the IPinfo API";
|
|
|
|
homepage = "https://github.com/ipinfo/cli";
|
2023-02-07 09:16:11 +00:00
|
|
|
changelog = "https://github.com/ipinfo/cli/releases/tag/ipinfo-${version}";
|
2021-05-14 10:27:13 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|