imap-notify

run a command when email is received
git clone git://jb55.com/imap-notify
Log | Files | Refs | README

commit 4c75b31a7731417b7fa9b5a41764b0a2f083d564
parent 1a0ef5006c6e65c4c84af09cab6565d77b223316
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 17 Jul 2017 15:04:48 -0700

nix config for easy install

Diffstat:
Adefault.nix | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -0,0 +1,28 @@ +{ stdenv, makeWrapper, nodejs }: + +stdenv.mkDerivation rec { + name = "imap-notify-${version}"; + version = "0.1"; + + src = ./.; + + makeFlags = "PREFIX=$(out)"; + + phases = ["installPhase"]; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin + cp $src/index.js $out/bin/imap-notify + wrapProgram $out/bin/imap-notify \ + --prefix PATH : "${nodejs}/bin" + ''; + + meta = with stdenv.lib; { + description = "imap-notify"; + homepage = "https://github.com/jb55/gmail-notify"; + maintainers = with maintainers; [ jb55 ]; + license = licenses.mit; + }; +}