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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.0.2";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-VRMwyVaTUJ+dDqewDGNZR1jH2EmDq1b42he7andh+/Q=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
vendorSha256 = "sha256-JsEKtE3N7C+BA3SanYwX17uJcFmbzPMWl5tUYPLCRdQ=";
|
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 = {
|
|
|
|
updateScript = nix-update-script { attrPath = pname; };
|
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|