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
999 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";
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
};
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 = {
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 ];
};
}