unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#47179] [PATCH] gnu: Add org-roam-server
@ 2021-03-15 22:52 Sharlatan Hellseher
  2021-03-15 22:59 ` Nicolò Balzarotti
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2021-03-15 22:52 UTC (permalink / raw)
  To: 47179

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

[-- Attachment #2: 0001-gnu-Add-org-roam-server.patch --]
[-- Type: text/x-patch, Size: 3261 bytes --]

From 1f4db88c82daa9fdb532259a70bc47156394db96 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Mon, 15 Mar 2021 22:49:26 +0000
Subject: [PATCH] gnu: Add org-roam-server

* gnu/packages/emacs-xyz.scm: (emacs-org-roam-server): New variable
---
 gnu/packages/emacs-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index dabac3c287..46757789e2 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -95,6 +95,7 @@
 ;;; Copyright © 2021 Alexey Abramov <levenson@mmer.org>
 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
+;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -139,8 +140,9 @@
   #:use-module (gnu packages djvu)
   #:use-module (gnu packages ebook)
   #:use-module (gnu packages emacs)
-  #:use-module (gnu packages guile)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gtk)
+  #:use-module (gnu packages guile)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages haskell-apps)
   #:use-module (gnu packages ibus)
@@ -26443,6 +26445,46 @@ bibliographical notes in Org Roam directory via Helm BibTeX, Ivy BibTeX, or by
 opening Org Ref's @code{cite:} links.")
     (license license:gpl3+)))
 
+(define-public emacs-org-roam-server
+  (package
+    (name "emacs-org-roam-server")
+    (version "1.1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/org-roam/org-roam-server")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1jp8mkqx1l3w166b16l2d5zsqjcc836bkclplgjk4laysb6msry8"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-assets
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (site-lisp (string-append out "/share/emacs/site-lisp"))
+                    (assets (string-append site-lisp "/assets")))
+               (mkdir-p assets)
+               (copy-recursively "assets" assets)
+               (copy-file "index.html" (string-append site-lisp "/index.html"))
+               #t))))))
+    (propagated-inputs
+     `(("emacs-f" ,emacs-f)
+       ("emacs-dash" ,emacs-dash)
+       ("emacs-simple-httpd" ,emacs-simple-httpd)
+       ("emacs-org-roam" ,emacs-org-roam)
+       ("emacs-s" ,emacs-s)
+       ("xdg-utils" ,xdg-utils))) ; for xdg-mime to load org-roam-protocol
+    (home-page "https://github.com/org-roam/org-roam-server")
+    (synopsis "Web Application to Visualize the Org-Roam Database")
+    (description "Web Application to Visualize the Org-Roam Database")
+    ;; jquery - MIT, vis-network - Apache, Bootstrap - MIT,
+    ;; orgcss - MIT, select2 - MIT, bootstrap-toggle - MIT
+    (license (list license:expat license:asl2.0))))
+
 (define-public emacs-org-generate
   (package
     (name "emacs-org-generate")
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#47179] [PATCH] gnu: Add org-roam-server
  2021-03-15 22:52 [bug#47179] [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
@ 2021-03-15 22:59 ` Nicolò Balzarotti
  2021-03-16  8:41 ` [bug#47179] Not minimised assets for org-roam-server Sharlatan Hellseher
  2024-02-08 18:19 ` bug#47179: [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Nicolò Balzarotti @ 2021-03-15 22:59 UTC (permalink / raw)
  To: Sharlatan Hellseher, 47179

Hi!

Sharlatan Hellseher <sharlatanus@gmail.com> writes:

> Subject: [PATCH] gnu: Add org-roam-server

Nice, but the repo contains minified .js, (all javascript in the repo is
minified), would it be possible to replace it with non-minified sources?
(and maybe minify it at build time?)  Thoughs?

Nicolò




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#47179] Not minimised assets for org-roam-server
  2021-03-15 22:52 [bug#47179] [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
  2021-03-15 22:59 ` Nicolò Balzarotti
@ 2021-03-16  8:41 ` Sharlatan Hellseher
  2024-02-08 18:19 ` bug#47179: [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2021-03-16  8:41 UTC (permalink / raw)
  To: 47179

Hi,

Yes I would think of it. Let me check it, JS is headache to pack in general.


-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47179: [PATCH] gnu: Add org-roam-server
  2021-03-15 22:52 [bug#47179] [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
  2021-03-15 22:59 ` Nicolò Balzarotti
  2021-03-16  8:41 ` [bug#47179] Not minimised assets for org-roam-server Sharlatan Hellseher
@ 2024-02-08 18:19 ` Sharlatan Hellseher
  2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2024-02-08 18:19 UTC (permalink / raw)
  To: 47179-done

[-- Attachment #1: Type: text/plain, Size: 55 bytes --]


This patch will never applied, closing as not actual.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-08 18:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15 22:52 [bug#47179] [PATCH] gnu: Add org-roam-server Sharlatan Hellseher
2021-03-15 22:59 ` Nicolò Balzarotti
2021-03-16  8:41 ` [bug#47179] Not minimised assets for org-roam-server Sharlatan Hellseher
2024-02-08 18:19 ` bug#47179: [PATCH] gnu: Add org-roam-server Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).