2021-02-03 23:36:26 +00:00
|
|
|
{ buildGoPackage, fetchFromGitLab, lib, runtimeShell }:
|
2020-04-16 04:21:20 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "goimapnotify";
|
|
|
|
version = "2.0";
|
|
|
|
|
|
|
|
goPackagePath = "gitlab.com/shackra/goimapnotify";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "shackra";
|
|
|
|
repo = "goimapnotify";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-04-16 04:21:20 +01:00
|
|
|
sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
|
|
|
|
};
|
|
|
|
|
2021-02-03 23:36:26 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace command.go --replace '"sh"' '"${runtimeShell}"'
|
|
|
|
'';
|
|
|
|
|
2020-04-16 04:21:20 +01:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE";
|
|
|
|
homepage = "https://gitlab.com/shackra/goimapnotify";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wohanley ];
|
|
|
|
};
|
|
|
|
}
|