nixpkgs/pkgs/by-name/ch/checkip/package.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";
2024-06-21 22:36:15 +00:00
version = "0.47.5";
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}";
2024-06-21 22:36:15 +00:00
hash = "sha256-iAMSNz5TDSId0gBm982hFkM+JR4naEREXKS7mi6z5dw=";
2021-09-04 22:54:05 +00:00
};
2024-04-30 12:28:03 +00:00
vendorHash = "sha256-awqaDEdWILm8RcQ8hrtJFMTJQA5TzGZhiBTMfexmtA0=";
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
};
}