dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
28 lines
634 B
Nix
28 lines
634 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "checkip";
|
|
version = "0.45.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jreisinger";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-GUVyeQtUNnW8yu/dhfip61jxQtgQmjBUDzsOW233laQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-9/z1mtZGqrvcvq8cWBpYN7kaPHaPqtyMwMNxuRRP4Cs=";
|
|
|
|
# Requires network
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "CLI tool that checks an IP address using various public services";
|
|
homepage = "https://github.com/jreisinger/checkip";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|