mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
b2342c9aea
sh is not on PATH in some environments (see #111688).
31 lines
777 B
Nix
31 lines
777 B
Nix
{ buildGoPackage, fetchFromGitLab, lib, runtimeShell }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "goimapnotify";
|
|
version = "2.0";
|
|
|
|
goPackagePath = "gitlab.com/shackra/goimapnotify";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "shackra";
|
|
repo = "goimapnotify";
|
|
rev = version;
|
|
sha256 = "1d42gd3m2rkvy985d181dbcm5i3f7xsg2z8z6s4bpvw24pfnzs42";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace command.go --replace '"sh"' '"${runtimeShell}"'
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|