2022-07-30 21:29:04 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2018-11-23 22:04:54 +01:00
|
|
|
|
2019-04-28 19:03:54 +02:00
|
|
|
buildGoModule {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "echoip";
|
2022-07-30 21:29:04 +02:00
|
|
|
version = "unstable-2021-08-03";
|
2018-11-23 22:04:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpolden";
|
|
|
|
repo = "echoip";
|
2022-07-30 21:29:04 +02:00
|
|
|
rev = "ffa6674637a5bf906d78ae6675f9a4680a78ab7b";
|
|
|
|
sha256 = "sha256-yN7PIwoIi2SPwwFWnHDoXnwvKohkPPf4kVsNxHLpqCE=";
|
2018-11-23 22:04:54 +01:00
|
|
|
};
|
|
|
|
|
2022-07-30 21:29:04 +02:00
|
|
|
vendorSha256 = "sha256-lXYpkeGpBK+WGHqyLxJz7kS3t7a55q55QQLTqtxzroc=";
|
2018-11-23 22:04:54 +01:00
|
|
|
|
2022-07-30 21:29:04 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-09-05 21:00:44 +02:00
|
|
|
|
2018-11-23 22:04:54 +01:00
|
|
|
postInstall = ''
|
2022-07-30 21:29:04 +02:00
|
|
|
install -D html/* -t $out/share/echoip/html
|
|
|
|
wrapProgram $out/bin/echoip \
|
|
|
|
--add-flags "-t $out/share/echoip/html"
|
2018-11-23 22:04:54 +01:00
|
|
|
'';
|
|
|
|
|
2022-07-30 21:29:04 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2022-07-30 21:29:04 +02:00
|
|
|
description = "IP address lookup service";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mpolden/echoip";
|
2018-11-23 22:04:54 +01:00
|
|
|
license = licenses.bsd3;
|
2022-07-30 21:29:04 +02:00
|
|
|
maintainers = with maintainers; [ rvolosatovs SuperSandro2000 ];
|
2018-11-23 22:04:54 +01:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|