2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
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";
|
2019-04-28 17:23:19 +01:00
|
|
|
version = "unstable-2019-07-12";
|
2018-11-23 21:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpolden";
|
|
|
|
repo = "echoip";
|
2019-04-28 17:23:19 +01:00
|
|
|
rev = "fb5fac92d2173c2a5b07ed4ecc7b5fefe8484ed2";
|
|
|
|
sha256 = "17gkh1qfxasvxy25lmjdwk5fsjkcp7lmw9si3xzf01m7qnj5zi4b";
|
2018-11-23 21:04:54 +00:00
|
|
|
};
|
|
|
|
|
2019-04-28 18:03:54 +01:00
|
|
|
modSha256 = "025p891klwpid5fw4z39fimgfkwgkcwqpn5276hflzdp1hfv35ly";
|
2018-11-23 21:04:54 +00:00
|
|
|
|
2019-09-05 20:00:44 +01:00
|
|
|
outputs = [ "out" "index" ];
|
|
|
|
|
2018-11-23 21:04:54 +00:00
|
|
|
postInstall = ''
|
2019-09-05 20:00:44 +01:00
|
|
|
mkdir -p $index
|
|
|
|
cp $src/index.html $index/index.html
|
2018-11-23 21:04:54 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2018-11-23 21:04:54 +00:00
|
|
|
homepage = https://github.com/mpolden/echoip;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|