diff options
author | Christopher Baines <mail@cbaines.net> | 2017-10-11 14:46:47 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2017-10-16 08:39:50 +0100 |
commit | 8e2ae7ee2950eb1eb162fc98724e4d03f8d7feca (patch) | |
tree | b1ec8907d6a790012e9ae7a11f2840e8dc51a350 /gnu | |
parent | 8de5ca028864d60d6bb6a60454fe491a6d194341 (diff) | |
download | patches-8e2ae7ee2950eb1eb162fc98724e4d03f8d7feca.tar patches-8e2ae7ee2950eb1eb162fc98724e4d03f8d7feca.tar.gz |
gnu: Add emacs-org-contrib.
* gnu/packages/emacs.scm (emacs-org-contrib): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/emacs.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 7661855a81..5b5e67e2af 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -4099,6 +4099,50 @@ also is an authoring system with unique support for literate programming and reproducible research.") (license license:gpl3+))) +(define-public emacs-org-contrib + (package + (inherit emacs-org) + (name "emacs-org-contrib") + (source (origin + (method url-fetch) + (uri (string-append "http://orgmode.org/elpa/org-plus-contrib-" + (package-version emacs-org) ".tar")) + (sha256 + (base32 + "1ya4kah8kg13ka3gpsw8hn6y8358843g986p1bgw5w77n9bgbwsl")))) + (arguments + `(#:modules ((guix build emacs-build-system) + (guix build utils) + (guix build emacs-utils) + (ice-9 ftw) + (srfi srfi-1)) + #:phases + (modify-phases %standard-phases + (add-after 'install 'delete-org-files + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (org (assoc-ref inputs "emacs-org")) + (contrib-files + (map basename (find-files out))) + (org+contrib-files + (map basename (find-files org))) + (duplicates (lset-intersection + string=? contrib-files org+contrib-files))) + (with-directory-excursion + (string-append + out "/share/emacs/site-lisp/guix.d/org-contrib-" + ,(package-version emacs-org)) + (for-each delete-file duplicates)) + #t)))))) + (propagated-inputs + `(("emacs-org" ,emacs-org))) + (synopsis "Contributed packages to Org-mode") + (description "Org is an Emacs mode for keeping notes, maintaining TODO +lists, and project planning with a fast and effective plain-text system. + +This package is equivilent to org-plus-contrib, but only includes additional +files that you would find in @file{contrib/} from the git repository."))) + (define-public emacs-flx (package (name "emacs-flx") |