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