diff mbox series

[bug#55725] gnu: Add r-diagrammersvg.

Message ID 20220530125341.18195-1-madalinionel.patrascu@mdc-berlin.de
State New
Headers show
Series [bug#55725] gnu: Add r-diagrammersvg. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Mădălin Ionel Patrașcu May 30, 2022, 12:53 p.m. UTC
* gnu/packages/cran.scm (r-diagrammersvg): New variable.
---
 gnu/packages/cran.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)


base-commit: 98e2f4fbebb8b08784401e2095123fcd3d3a32cb

Comments

Ricardo Wurmus May 30, 2022, 1:06 p.m. UTC | #1
Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de> writes:

> * gnu/packages/cran.scm (r-diagrammersvg): New variable.

Thanks for the patch.

Unfortunately, we cannot merge it as is, because the package bundles
minified JavaScript.  The bundled d3.js can easily be replaced, but I
don’t know about the other bundled JavaScript files.
Ricardo Wurmus Oct. 11, 2023, 8:23 a.m. UTC | #2
I’m closing this because there has been no response and we’ve got
r-diagrammersvg in the guix-science channel.
diff mbox series

Patch

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 5a8285b342..568882e701 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -24078,6 +24078,26 @@  (define-public r-diagram
 Francesca Mazzia (2012).")
     (license license:gpl2+)))
 
+(define-public r-diagrammersvg
+  (package
+    (name "r-diagrammersvg")
+    (version "0.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "DiagrammeRsvg" version))
+        (sha256
+          (base32 "0j2cm1mx3zrb2k3pcrb96z2z3kws61gyyjsjjv5rqcb5lzdgi65k"))))
+    (properties `((upstream-name . "DiagrammeRsvg")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-v8))
+    (home-page "https://github.com/rich-iannone/DiagrammeRsvg")
+    (synopsis "Export DiagrammeR graphviz graphs as svg")
+    (description
+     "This package allows exporting a @code{DiagrammeR Graphviz} objects to
+@code{SVG}.")
+    (license license:expat)))
+
 (define-public r-lim
   (package
     (name "r-lim")