2020-03-27 10:33:21 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-24 00:04:54 +03:00
|
|
|
|
2019-04-28 20:03:54 +03:00
|
|
|
buildGoModule {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "echoip";
|
2019-04-28 19:23:19 +03:00
|
|
|
version = "unstable-2019-07-12";
|
2018-11-24 00:04:54 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpolden";
|
|
|
|
repo = "echoip";
|
2019-04-28 19:23:19 +03:00
|
|
|
rev = "fb5fac92d2173c2a5b07ed4ecc7b5fefe8484ed2";
|
|
|
|
sha256 = "17gkh1qfxasvxy25lmjdwk5fsjkcp7lmw9si3xzf01m7qnj5zi4b";
|
2018-11-24 00:04:54 +03:00
|
|
|
};
|
|
|
|
|
2020-05-01 04:59:00 +03:00
|
|
|
vendorSha256 = "0vvs717pl5gzggxpbn2vkyxmpiw5zjdfnpbh8i81xidbqvlnm22h";
|
2018-11-24 00:04:54 +03:00
|
|
|
|
2020-08-04 03:26:27 +03:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-05 22:00:44 +03:00
|
|
|
outputs = [ "out" "index" ];
|
|
|
|
|
2018-11-24 00:04:54 +03:00
|
|
|
postInstall = ''
|
2019-09-05 22:00:44 +03:00
|
|
|
mkdir -p $index
|
|
|
|
cp $src/index.html $index/index.html
|
2018-11-24 00:04:54 +03:00
|
|
|
'';
|
|
|
|
|
2020-03-27 10:33:21 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/mpolden/echoip";
|
2018-11-24 00:04:54 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
2020-07-31 06:58:04 +03:00
|
|
|
}
|