nixpkgs/pkgs/tools/misc/notify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1019 B
Nix
Raw Normal View History

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";
2022-10-06 21:47:30 +00:00
version = "1.0.4";
2021-06-22 09:24:57 +00:00
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = pname;
rev = "v${version}";
2022-10-06 21:47:30 +00:00
sha256 = "sha256-PZSt4mhon0JbFxeq5tOXb+xWKOoxT6rjRS1E3Jf2V3c=";
2021-06-22 09:24:57 +00:00
};
2022-10-06 21:47:30 +00:00
vendorSha256 = "sha256-MoGaIs2WmJk+E8pTljrahuaJ1VwYBhGBf1XGYVYOVt4=";
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 = {
updateScript = nix-update-script { attrPath = pname; };
};
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 ];
};
}