My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/networking/checkip/default.nix

28 lines
636 B

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "checkip";
version = "0.35.2";
src = fetchFromGitHub {
owner = "jreisinger";
repo = pname;
rev = "v${version}";
sha256 = "sha256-O6jVedVwzC575s7LS0gx1t6mUizQGv4Gcqra57vXX+w=";
};
vendorSha256 = "sha256-NHu1hZFPT2k8izrvvz7w0vlVe/nKH0nS4oXUGS8CWcc=";
# 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 ];
};
}