Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
933 B
Nix
39 lines
933 B
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitLab,
|
|
lib,
|
|
runtimeShell,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "goimapnotify";
|
|
version = "2.5.3";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "shackra";
|
|
repo = "goimapnotify";
|
|
tag = version;
|
|
hash = "sha256-sA2fXk7/xnPl8ogrF00fiRCZvhFoHWjNlugL6gTGHk0=";
|
|
};
|
|
|
|
vendorHash = "sha256-5cZzaCoOR1R7iST0q3GaJbYIbKKEigeWqhp87maOL04=";
|
|
|
|
postPatch = ''
|
|
for f in command.go command_test.go; do
|
|
substituteInPlace $f --replace '"sh"' '"${runtimeShell}"'
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE";
|
|
homepage = "https://gitlab.com/shackra/goimapnotify";
|
|
changelog = "https://gitlab.com/shackra/goimapnotify/-/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [
|
|
wohanley
|
|
rafaelrc
|
|
];
|
|
mainProgram = "goimapnotify";
|
|
};
|
|
}
|