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