2021-03-21 19:11:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2020-12-27 00:07:33 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "teler";
|
2021-03-17 18:52:00 +00:00
|
|
|
version = "1.1.1";
|
2020-12-27 00:07:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kitabisa";
|
|
|
|
repo = "teler";
|
|
|
|
rev = "v${version}";
|
2021-03-17 18:52:00 +00:00
|
|
|
sha256 = "sha256-FZG23j7LUwfJ0dSbU4xW0YyCKJxOjVf1uqkuGlrwnqs=";
|
2020-12-27 00:07:33 +00:00
|
|
|
};
|
|
|
|
|
2021-03-13 15:09:12 +00:00
|
|
|
vendorSha256 = "sha256-KvUnDInUqFW7FypgsppIBQZKNu6HVsEeHtGwdqYtoys=";
|
2020-12-27 00:07:33 +00:00
|
|
|
|
2021-03-21 19:11:00 +00:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-s -w -X ktbs.dev/teler/common.Version=${version}")
|
|
|
|
'';
|
|
|
|
|
2020-12-27 00:07:33 +00:00
|
|
|
# test require internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-27 00:07:33 +00:00
|
|
|
description = "Real-time HTTP Intrusion Detection";
|
|
|
|
longDescription = ''
|
|
|
|
teler is an real-time intrusion detection and threat alert
|
|
|
|
based on web log that runs in a terminal with resources that
|
|
|
|
we collect and provide by the community.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/kitabisa/teler";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|