c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
35 lines
791 B
Nix
35 lines
791 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "checkip";
|
|
version = "0.46.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jreisinger";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-U0jHwKmGHpaHSiOYDeYCXiufw0JjzAmhBnINmFsqOJo=";
|
|
};
|
|
|
|
vendorHash = "sha256-9/z1mtZGqrvcvq8cWBpYN7kaPHaPqtyMwMNxuRRP4Cs=";
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
];
|
|
|
|
# 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";
|
|
changelog = "https://github.com/jreisinger/checkip/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "checkip";
|
|
};
|
|
}
|