1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8buildGoModule rec {
9 pname = "notify";
10 version = "1.0.7";
11
12 src = fetchFromGitHub {
13 owner = "projectdiscovery";
14 repo = "notify";
15 rev = "v${version}";
16 sha256 = "sha256-QXioBUCMZ4ANkF2WOXiKUlExVq4abkaVFBd3efAGXMs=";
17 };
18
19 vendorHash = "sha256-jO9d+wJr03rqlPrQ3mmWOxOXw2kL+0x8YkkXu/Msm+Q=";
20
21 modRoot = ".";
22 subPackages = [
23 "cmd/notify/"
24 ];
25
26 # Test files are not part of the release tarball
27 doCheck = false;
28
29 passthru = {
30 updateScript = nix-update-script { };
31 };
32
33 meta = with lib; {
34 description = "Notify allows sending the output from any tool to Slack, Discord and Telegram";
35 longDescription = ''
36 Notify is a helper utility written in Go that allows you to post the output from any tool
37 to Slack, Discord, and Telegram.
38 '';
39 homepage = "https://github.com/projectdiscovery/notify";
40 license = licenses.mit;
41 maintainers = with maintainers; [ hanemile ];
42 mainProgram = "notify";
43 };
44}