aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2019-09-26 12:42:45 -0500
committerEfraim Flashner2019-09-26 12:42:45 -0500
commitd3146eca7e7d049e90133484680517242500b032 (patch)
tree6efcbe2881e256b00ad8e4c1d0ca21c883bdd895 /gn
parent1347daa00f7da4de18065513ff0a79cbd5136d15 (diff)
downloadguix-bioinformatics-d3146eca7e7d049e90133484680517242500b032.tar.gz
gn: Add javascript-plotly.
* gn/packages/javascript.scm (javascript-plotly): New variable.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/javascript.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index 646683a..daaaf7c 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -925,3 +925,37 @@ your forms' modifications and adapts its validation accordingly.")
(name "js-parsley")
(arguments `(#:javascript-files '("dist/parsley.js")))
(build-system minify-build-system)))
+
+(define-public javascript-plotly
+ (package
+ (name "javascript-plotly")
+ (version "1.49.5") ; Sept 18, 2019
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/plotly/plotly.js")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0l090qlslswgqv0yfnkyvswrv5qx2dcjagcvmr7h1fh11dl6d6zd"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (targetdir (string-append out "/share/genenetwork2/javascript/plotly"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (copy-recursively dist targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://plot.ly/javascript/")
+ (synopsis "Javascript charting library")
+ (description
+ "Built on top of d3.js and stack.gl, plotly.js is a high-level, declarative
+charting library. plotly.js ships with 20 chart types, including 3D charts,
+statistical graphs, and SVG maps.")
+ (license license:expat)))