From d3146eca7e7d049e90133484680517242500b032 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 26 Sep 2019 12:42:45 -0500 Subject: gn: Add javascript-plotly. * gn/packages/javascript.scm (javascript-plotly): New variable. --- gn/packages/javascript.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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))) -- cgit v1.2.3