3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/checkip/default.nix

29 lines
636 B
Nix
Raw Normal View History

2021-09-04 23:54:05 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "checkip";
2021-12-09 20:05:09 +00:00
version = "0.16.1";
2021-09-04 23:54:05 +01:00
src = fetchFromGitHub {
owner = "jreisinger";
repo = pname;
rev = "v${version}";
2021-12-09 20:05:09 +00:00
sha256 = "sha256-XIrGza8yMC1lrSXiaEADcft4UkaZ33R6LW4ug0+8sxs=";
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 ];
};
}