2022-07-30 19:29:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2018-11-23 21:04:54 +00:00
|
|
|
|
2019-04-28 17:03:54 +00:00
|
|
|
buildGoModule {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "echoip";
|
2022-07-30 19:29:04 +00:00
|
|
|
version = "unstable-2021-08-03";
|
2018-11-23 21:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpolden";
|
|
|
|
repo = "echoip";
|
2022-07-30 19:29:04 +00:00
|
|
|
rev = "ffa6674637a5bf906d78ae6675f9a4680a78ab7b";
|
|
|
|
sha256 = "sha256-yN7PIwoIi2SPwwFWnHDoXnwvKohkPPf4kVsNxHLpqCE=";
|
2018-11-23 21:04:54 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-lXYpkeGpBK+WGHqyLxJz7kS3t7a55q55QQLTqtxzroc=";
|
2018-11-23 21:04:54 +00:00
|
|
|
|
2022-07-30 19:29:04 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-09-05 19:00:44 +00:00
|
|
|
|
2018-11-23 21:04:54 +00:00
|
|
|
postInstall = ''
|
2022-07-30 19:29:04 +00: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 19:29:04 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2022-07-30 19:29:04 +00:00
|
|
|
description = "IP address lookup service";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mpolden/echoip";
|
2018-11-23 21:04:54 +00:00
|
|
|
license = licenses.bsd3;
|
2022-07-30 19:29:04 +00:00
|
|
|
maintainers = with maintainers; [ rvolosatovs SuperSandro2000 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "echoip";
|
2018-11-23 21:04:54 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|