(define-module (mbsync-notify)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix build-system copy)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (gnu packages mail)
  #:use-module (gnu packages gnome)
  )

(define-public mbsync-notify
  (package
    (name "mbsync-notify")
    (version "1.0.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://git.techchud.xyz/mbsync-notify")
                     (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1d3xcr8ny8iihqr1da23sicn8wn5x0pxx549by6r53yw3f6shbhj"))))
    (build-system copy-build-system)
    (inputs
      (list
        isync
        libnotify
        ))
    (arguments
      '(#:install-plan '(("mbsync-notify" "/bin/mbsync-notify"))))
    (synopsis "Adds notifications to mbsync")
    (description
     "Shell script that gets all emails, then notifies you of new ones.")
    (home-page "https://git.techchud.xyz/mbsync-notify/")
    (license agpl3)))