2021-09-05 00:54:05 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "checkip";
|
2022-12-22 03:10:27 +01:00
|
|
|
version = "0.44.2";
|
2021-09-05 00:54:05 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jreisinger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-22 03:10:27 +01:00
|
|
|
sha256 = "sha256-jU0k6V3NoTdv/62VVa33WEo65eiYTCti0cWalsAiQwI=";
|
2021-09-05 00:54:05 +02:00
|
|
|
};
|
|
|
|
|
2022-12-22 03:10:27 +01:00
|
|
|
vendorSha256 = "sha256-lZZH9QyqPeO1m5UET9HUnxOzzz3M9y6QkL36T6BUia0=";
|
2021-09-05 00:54:05 +02: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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|