lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "teler";
8 version = "2.0.0";
9
10 src = fetchFromGitHub {
11 owner = "kitabisa";
12 repo = "teler";
13 rev = "refs/tags/v${version}";
14 hash = "sha256-3+A1QloZQlH31snWfwYa6rprpKUf3fQc/HQgmKQgV9c=";
15 };
16
17 vendorHash = "sha256-gV/PJFcANeYTYUJG3PYNsApYaeBLx76+vVBvcuKDYO4=";
18
19 ldflags = [
20 "-s"
21 "-w"
22 "-X=ktbs.dev/teler/common.Version=${version}"
23 ];
24
25 # test require internet access
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Real-time HTTP Intrusion Detection";
30 longDescription = ''
31 teler is an real-time intrusion detection and threat alert
32 based on web log that runs in a terminal with resources that
33 we collect and provide by the community.
34 '';
35 homepage = "https://github.com/kitabisa/teler";
36 changelog = "https://github.com/kitabisa/teler/releases/tag/v${version}";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ fab ];
39 mainProgram = "teler.app";
40 };
41}