aboutsummaryrefslogtreecommitdiff
path: root/gn/packages
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-21 02:41:24 -0500
committerEfraim Flashner2019-07-21 02:49:00 -0500
commit93d768f1e63f7ba0da1f38e14205acc30778094f (patch)
tree5a38361f97ec67cf339e0f75ca2c782f56bb79b2 /gn/packages
parent90ee9fd1b44ff6f4c3c64779e53fafa3fa565bb2 (diff)
downloadguix-bioinformatics-93d768f1e63f7ba0da1f38e14205acc30778094f.tar.gz
gn: Add javascript-cytoscape-popper.
* gn/packages/web.scm (javascript-cytoscape-popper): New variable.
Diffstat (limited to 'gn/packages')
-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 3d1b557..cd377d8 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -166,6 +166,40 @@ traditional UI -- similar to controls on map webapps.")
(description "Cytoscape.")
(license license:expat)))
+(define-public javascript-cytoscape-popper
+ (package
+ (name "javascript-cytoscape-popper")
+ (version "1.0.4") ; Feb 13, 2019
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cytoscape/cytoscape.js-popper")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0nb59cimzp6zprk0czrfkc6id70ia2gg8drgmd55nf3yspn4b5rj"))))
+ (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/cytoscape-popper"))
+ (source (assoc-ref %build-inputs "source")))
+ (install-file (string-append source "/cytoscape-popper.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (propagated-inputs `(("javascript-cytoscape" ,javascript-cytoscape)))
+ (home-page "https://github.com/cytoscape/cytoscape.js-popper")
+ (synopsis "Cytoscape.js extension for integrating Popper.js")
+ (description "Popper.js allows you to dynamically align a div, e.g. a
+tooltip, to another element in the page. This extension allows you to use
+Popper.js on Cytoscape elements. This allows you to create DOM elements
+positioned on or around Cytoscape elements. It is useful for tooltips and
+overlays, for example.")
+ (license license:expat)))
+
(define-public javascript-qtip2
(package
(name "javascript-qtip2")