nanounanue

org-roam fixed

Sep 1st, 2021
1,053
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.29 KB | None | 0 0
  1. (define-public emacs-org-roam
  2.   (package
  3.     (name "emacs-org-roam")
  4.     (version "2.1.0")
  5.     (source
  6.      (origin
  7.        (method git-fetch)
  8.        (uri (git-reference
  9.              (url "https://github.com/org-roam/org-roam")
  10.              (commit (string-append "v" version))))
  11.        (file-name (git-file-name name version))
  12.        (sha256
  13.         (base32 "092xn0sqc7b7f6pdf7m6c3giqqbh6fq02mfz8qrg0wmx4ds1isqp"))))
  14.     (build-system emacs-build-system)
  15.     (arguments
  16.      `(#:phases
  17.        (modify-phases %standard-phases
  18.          (add-after 'install 'install-image
  19.            (lambda* (#:key outputs #:allow-other-keys)
  20.              (let ((out (assoc-ref outputs "out")))
  21.                (install-file "doc/images/org-ref-citelink.png"
  22.                              (string-append out "/share/info/images")))))
  23.  
  24.          (add-after 'install 'install-extensions
  25.            (lambda* (#:key outputs #:allow-other-keys)
  26.              (copy-recursively
  27.               "extensions"
  28.               (string-append (assoc-ref outputs "out")
  29.                              (string-append  "/share/emacs/site-lisp/org-roam-" ,version)))
  30.              #t))
  31.  
  32.          (add-after 'install-image 'make-info
  33.            (lambda* (#:key outputs #:allow-other-keys)
  34.              (let ((out (assoc-ref outputs "out")))
  35.                (with-directory-excursion "doc"
  36.                  (invoke "makeinfo" "-o" "org-roam.info" "org-roam.texi")
  37.                  (install-file "org-roam.info"
  38.                                (string-append out "/share/info")))))))))
  39.     (native-inputs
  40.      `(("texinfo" ,texinfo)))
  41.     (propagated-inputs
  42.      `(("emacs-dash" ,emacs-dash)
  43.        ("emacs-emacsql-sqlite3" ,emacs-emacsql-sqlite3)
  44.        ("emacs-f" ,emacs-f)
  45.        ("emacs-magit" ,emacs-magit)
  46.        ("emacs-org" ,emacs-org)
  47.        ("emacs-s" ,emacs-s)))
  48.     (home-page "https://github.com/org-roam/org-roam/")
  49.     (synopsis "Non-hierarchical note-taking with Org mode")
  50.     (description "Emacs Org Roam is a solution for taking non-hierarchical
  51. notes with Org mode.  Notes are captured without hierarchy and are connected
  52. by tags.  Notes can be found and created quickly.  Org Roam should also work
  53. as a plug-and-play solution for anyone already using Org mode for their
  54. personal wiki.")
  55.     (license license:gpl3+)))
Advertisement
Add Comment
Please, Sign In to add comment