nixpkgs/pkgs/tools/networking/checkip/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
791 B
Nix
Raw Normal View History

2021-09-04 22:54:05 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "checkip";
2023-05-20 22:41:28 +00:00
version = "0.46.1";
2021-09-04 22:54:05 +00:00
src = fetchFromGitHub {
owner = "jreisinger";
repo = pname;
2023-05-20 23:08:47 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-U0jHwKmGHpaHSiOYDeYCXiufw0JjzAmhBnINmFsqOJo=";
2021-09-04 22:54:05 +00:00
};
2023-03-07 16:29:06 +00:00
vendorHash = "sha256-9/z1mtZGqrvcvq8cWBpYN7kaPHaPqtyMwMNxuRRP4Cs=";
2021-09-04 22:54:05 +00:00
2023-05-20 23:08:47 +00:00
ldflags = [
"-w"
"-s"
];
2021-09-04 22:54:05 +00:00
# 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";
2023-05-20 23:08:47 +00:00
changelog = "https://github.com/jreisinger/checkip/releases/tag/v${version}";
2021-09-04 22:54:05 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
2024-02-11 02:19:15 +00:00
mainProgram = "checkip";
2021-09-04 22:54:05 +00:00
};
}