2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2022-09-09 14:08:57 +00:00
|
|
|
, nix-update-script
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "notify";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.0.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-9oakHqDhOZyqzlVqHPjTsG2f780DABt0+JRckmkWW64=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-/FJECY1x9nMqOIzqdN6T+vdi9qjjY0YAoqvVNf0kN3s=";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
modRoot = ".";
|
|
|
|
subPackages = [
|
|
|
|
"cmd/notify/"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test files are not part of the release tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Notify allows sending the output from any tool to Slack, Discord and Telegram";
|
|
|
|
longDescription = ''
|
|
|
|
Notify is a helper utility written in Go that allows you to post the output from any tool
|
|
|
|
to Slack, Discord, and Telegram.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/projectdiscovery/notify";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hanemile ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "notify";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|