From f33a2df7b9f630547ba081cdc2b3de5e8f6e77c1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 26 Sep 2022 16:05:48 -0700 Subject: Switch rincewind over to using Guix Home --- oni/packages/notmuch-collect-tasks.scm | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 oni/packages/notmuch-collect-tasks.scm (limited to 'oni/packages/notmuch-collect-tasks.scm') diff --git a/oni/packages/notmuch-collect-tasks.scm b/oni/packages/notmuch-collect-tasks.scm new file mode 100644 index 0000000..e664cc0 --- /dev/null +++ b/oni/packages/notmuch-collect-tasks.scm @@ -0,0 +1,41 @@ +(define-module (oni packages notmuch-collect-tasks) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages mail)) + +(define-public notmuch-collect-tasks + (let ((commit "c0399a2bbd499d3fcdf2cfce2d9a8162d5865de0") + (revision "0")) + (package + (name "notmuch-collect-tasks") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "git://ryuslash.org/util/tom/notmuch-collect-tasks.git") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "1rkxcmlmz5ncd3x59kgffg889wibi3q8d3gv2vm1nvaayzj58zm9")) + (file-name (git-file-name name version)))) + (propagated-inputs + (list bash notmuch)) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (install-file "notmuch-collect-tasks" bin))))))) + (home-page "https://ryuslash.org/") + (synopsis "A simple script that scans email subjects for tasks to add.") + (description "Creates tasks based on incoming email.") + (license license:gpl3+)))) -- cgit v1.2.3-54-g00ecf