2021-09-04 23:54:05 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "checkip";
|
2021-12-19 17:56:48 +00:00
|
|
|
version = "0.16.2";
|
2021-09-04 23:54:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jreisinger";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-19 17:56:48 +00:00
|
|
|
sha256 = "sha256-ktAb5kUwEE4xCgsuj0gO4jP6EybOBLjdlskUF/zwrqU=";
|
2021-09-04 23:54:05 +01:00
|
|
|
};
|
|
|
|
|
2021-12-09 20:05:09 +00:00
|
|
|
vendorSha256 = "sha256-4XA7B0gmFE52VoKiPLsa0urPS7IdzrTBXuU4wZv/Lag=";
|
2021-09-04 23:54:05 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|