nixpkgs/pkgs/tools/networking/ipinfo/default.nix
2023-10-11 13:41:28 +00:00

30 lines
663 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ipinfo";
version = "3.1.2";
src = fetchFromGitHub {
owner = pname;
repo = "cli";
rev = "refs/tags/${pname}-${version}";
hash = "sha256-KCdKfZs1u3ZLaG+Lmod/vV0T0LaW8hs4ReGlVA7A9pA=";
};
vendorHash = 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 ];
};
}