mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
29 lines
634 B
Nix
29 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 ];
|
|
};
|
|
}
|