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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
991 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";
2023-02-01 13:24:41 +00:00
version = "2.0.0-dev.3";
2020-12-27 00:07:33 +00:00
src = fetchFromGitHub {
owner = "kitabisa";
repo = "teler";
rev = "v${version}";
2023-02-01 13:24:41 +00:00
hash = "sha256-2QrHxToHxHTjSl76q9A8fXCkOZkCwh1fu1h+HDUGsGA=";
2020-12-27 00:07:33 +00:00
};
2023-02-01 13:24:41 +00:00
vendorHash = "sha256-gV/PJFcANeYTYUJG3PYNsApYaeBLx76+vVBvcuKDYO4=";
2020-12-27 00:07:33 +00:00
2021-08-21 08:23:51 +00:00
ldflags = [
2022-12-07 10:06:03 +00:00
"-s"
"-w"
"-X ktbs.dev/teler/common.Version=${version}"
2021-08-21 08:23:51 +00:00
];
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";
2022-12-07 10:06:03 +00:00
changelog = "https://github.com/kitabisa/teler/releases/tag/v${version}";
2020-12-27 00:07:33 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}