aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-22 07:18:13 -0500
committerEfraim Flashner2019-07-22 07:41:42 -0500
commita1076f7d936f84a18e764ecbd310b813b1fb5a20 (patch)
treee7d36060f163ef054302a121edd769860627be7d /gn/packages/javascript.scm
parentf3d7b31e00d179eaa945c023c067e95f60d3072e (diff)
downloadguix-bioinformatics-a1076f7d936f84a18e764ecbd310b813b1fb5a20.tar.gz
gn: Add javascript-d3js-4.
* gn/packages/javascript.scm (javascript-d3js-4): New variable.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index b570257..417fca8 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -406,3 +406,30 @@ emphasis on web standards gives you the full capabilities of modern browsers
without tying yourself to a proprietary framework, combining powerful
visualization components and a data-driven approach to DOM manipulation.")
(license license:bsd-3)))
+
+(define-public javascript-d3js-4
+ (package
+ (inherit javascript-d3js)
+ (version "4.13.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/d3/d3/releases/download/v"
+ version "/d3.zip"))
+ (sha256
+ (base32 "06yqgyvkpvh0lg7rsh4hjzq72fylkd8ziqcf7yhgy510x0mqla19"))))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (name "d3js")
+ (unzip (string-append (assoc-ref %build-inputs "unzip")
+ "/bin/unzip"))
+ (targetdir (string-append out "/share/genenetwork/javascript/" name))
+ (source (assoc-ref %build-inputs "source")))
+ (invoke unzip source)
+ (install-file "d3.js" targetdir)
+ (install-file "d3.min.js" targetdir)
+ (install-file "LICENSE" (string-append out "/share/doc/d3js-" ,version))))))))