nixpkgs-suyu/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 20:11:00 +01:00
{ lib
, buildGoModule
2020-12-27 01:07:33 +01:00
, fetchFromGitHub
}:
buildGoModule rec {
pname = "teler";
2023-02-01 14:24:41 +01:00
version = "2.0.0-dev.3";
2020-12-27 01:07:33 +01:00
src = fetchFromGitHub {
owner = "kitabisa";
repo = "teler";
rev = "v${version}";
2023-02-01 14:24:41 +01:00
hash = "sha256-2QrHxToHxHTjSl76q9A8fXCkOZkCwh1fu1h+HDUGsGA=";
2020-12-27 01:07:33 +01:00
};
2023-02-01 14:24:41 +01:00
vendorHash = "sha256-gV/PJFcANeYTYUJG3PYNsApYaeBLx76+vVBvcuKDYO4=";
2020-12-27 01:07:33 +01:00
2021-08-21 10:23:51 +02:00
ldflags = [
2022-12-07 11:06:03 +01:00
"-s"
"-w"
"-X ktbs.dev/teler/common.Version=${version}"
2021-08-21 10:23:51 +02:00
];
2021-03-21 20:11:00 +01:00
2020-12-27 01:07:33 +01:00
# test require internet access
doCheck = false;
meta = with lib; {
2020-12-27 01:07:33 +01: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 11:06:03 +01:00
changelog = "https://github.com/kitabisa/teler/releases/tag/v${version}";
2020-12-27 01:07:33 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}