3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/goimapnotify/default.nix

31 lines
818 B
Nix
Raw Normal View History

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";
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=";
postPatch = ''
2021-08-28 09:19:09 +01:00
for f in command.go command_test.go; do
substituteInPlace $f --replace '"sh"' '"${runtimeShell}"'
done
'';
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 ];
};
}