aboutsummaryrefslogtreecommitdiff
path: root/gn/packages
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-22 07:26:06 -0500
committerEfraim Flashner2019-07-22 07:41:42 -0500
commit8475b1964812556d36abac6c5376b7df87836454 (patch)
tree9c278b90dd8d6f3d0997b559828b22b10c3cdfb8 /gn/packages
parenta1076f7d936f84a18e764ecbd310b813b1fb5a20 (diff)
downloadguix-bioinformatics-8475b1964812556d36abac6c5376b7df87836454.tar.gz
gn: Add javascript-d3js-multi.
* gn/packages/javascript.scm (javascript-d3js-multi): New variable.
Diffstat (limited to 'gn/packages')
-rw-r--r--gn/packages/javascript.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index 417fca8..ece996c 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -433,3 +433,40 @@ visualization components and a data-driven approach to DOM manipulation.")
(install-file "d3.js" targetdir)
(install-file "d3.min.js" targetdir)
(install-file "LICENSE" (string-append out "/share/doc/d3js-" ,version))))))))
+
+(define-public javascript-d3js-multi
+ (package
+ (name "javascript-d3js-multi")
+ (version "1.0.1") ; Feb, 21, 2017
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/d3/d3-selection-multi/releases"
+ "/download/v" version "/d3-selection-multi.zip"))
+ (sha256
+ (base32 "0k89n15ggpzsvf7qflmsagkrrhigk6nksdyks0ccx3453gizbb4q"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (name "d3js-multi")
+ (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-selection-multi.js" targetdir)
+ (install-file "d3-selection-multi.min.js" targetdir)
+ (install-file "LICENSE" (string-append out "/share/doc/" ,name "-" ,version))))))
+ (native-inputs
+ `(("source" ,source)
+ ("unzip" ,unzip)))
+ (home-page "https://d3js.org/")
+ (synopsis "Multi-value syntax for d3-selection and d3-transition")
+ (description "This module adds multi-value syntax to selections and
+transitions, allowing you to set multiple attributes, styles or properties
+simultaneously with more concise syntax.")
+ (license license:bsd-3)))