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

36 lines
791 B
Nix
Raw Normal View History

2021-09-05 01:54:05 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "checkip";
2024-06-22 01:36:15 +03:00
version = "0.47.5";
2021-09-05 01:54:05 +03:00
src = fetchFromGitHub {
owner = "jreisinger";
repo = pname;
2023-05-21 02:08:47 +03:00
rev = "refs/tags/v${version}";
2024-06-22 01:36:15 +03:00
hash = "sha256-iAMSNz5TDSId0gBm982hFkM+JR4naEREXKS7mi6z5dw=";
2021-09-05 01:54:05 +03:00
};
2024-04-30 15:28:03 +03:00
vendorHash = "sha256-awqaDEdWILm8RcQ8hrtJFMTJQA5TzGZhiBTMfexmtA0=";
2021-09-05 01:54:05 +03:00
2023-05-21 02:08:47 +03:00
ldflags = [
"-w"
"-s"
];
2021-09-05 01:54:05 +03: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-21 02:08:47 +03:00
changelog = "https://github.com/jreisinger/checkip/releases/tag/v${version}";
2021-09-05 01:54:05 +03:00
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
2024-02-11 05:19:15 +03:00
mainProgram = "checkip";
2021-09-05 01:54:05 +03:00
};
}