2021-08-28 09:19:09 +01:00
|
|
|
{ buildGoModule, fetchFromGitLab, lib, runtimeShell }:
|
2020-04-16 04:21:20 +01:00
|
|
|
|
2021-08-28 09:19:09 +01:00
|
|
|
buildGoModule rec {
|
2020-04-16 04:21:20 +01:00
|
|
|
pname = "goimapnotify";
|
2021-08-28 09:19:09 +01:00
|
|
|
version = "2.3.2";
|
2020-04-16 04:21:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "shackra";
|
|
|
|
repo = "goimapnotify";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2021-08-28 09:19:09 +01:00
|
|
|
sha256 = "sha256-pkpdIkabxz9bu0LnyU1/wu1qqPc/pQqCn8tePc2fIfg=";
|
2020-04-16 04:21:20 +01:00
|
|
|
};
|
|
|
|
|
2021-08-28 09:19:09 +01:00
|
|
|
vendorSha256 = "sha256-4+2p/7BAEk+1V0TII9Q2O2YNX0rvBiw2Ss7k1dsvUbk=";
|
|
|
|
|
2021-02-03 23:36:26 +00:00
|
|
|
postPatch = ''
|
2021-08-28 09:19:09 +01:00
|
|
|
for f in command.go command_test.go; do
|
|
|
|
substituteInPlace $f --replace '"sh"' '"${runtimeShell}"'
|
|
|
|
done
|
2021-02-03 23:36:26 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-16 04:21:20 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|