2021-06-22 09:24:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2022-08-24 11:20:23 +00:00
|
|
|
, nix-update-script
|
2021-06-22 09:24:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "notify";
|
2023-05-31 10:20:56 +00:00
|
|
|
version = "1.0.5";
|
2021-06-22 09:24:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-31 10:20:56 +00:00
|
|
|
sha256 = "sha256-CXzxrY8G7Zh5xafuiIY9SsPkrYoSkMt15v2KLZBs0Jo=";
|
2021-06-22 09:24:57 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-tjaVEmOd/MJnDcS/mhvw95ZZ8giaUDTdDTyAMbjTckM=";
|
2021-06-22 09:24:57 +00:00
|
|
|
|
|
|
|
modRoot = ".";
|
|
|
|
subPackages = [
|
|
|
|
"cmd/notify/"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test files are not part of the release tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-24 11:20:23 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-08-24 11:20:23 +00:00
|
|
|
};
|
|
|
|
|
2021-06-22 09:24:57 +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 ];
|
|
|
|
};
|
|
|
|
}
|