nixpkgs/pkgs/tools/security/teler/default.nix

38 lines
903 B
Nix
Raw Normal View History

2021-03-21 19:11:00 +00:00
{ lib
, buildGoModule
2020-12-27 00:07:33 +00:00
, fetchFromGitHub
}:
buildGoModule rec {
pname = "teler";
2021-04-05 05:59:33 +00:00
version = "1.2.2";
2020-12-27 00:07:33 +00:00
src = fetchFromGitHub {
owner = "kitabisa";
repo = "teler";
rev = "v${version}";
2021-04-05 05:59:33 +00:00
sha256 = "sha256-i4106PtoCJt5CY9ahczZYe9GufBkaZS+9Peh0IY9r1M=";
2020-12-27 00:07:33 +00:00
};
2021-03-27 22:19:10 +00:00
vendorSha256 = "sha256-TQjwPem+RMuoF5T02CL/CTvBS6W7Q786gTvYUFIvxjE=";
2020-12-27 00:07:33 +00:00
2021-08-21 08:23:51 +00:00
ldflags = [
"-s" "-w" "-X ktbs.dev/teler/common.Version=${version}"
];
2021-03-21 19:11:00 +00:00
2020-12-27 00:07:33 +00:00
# test require internet access
doCheck = false;
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 ];
};
}