From 93d768f1e63f7ba0da1f38e14205acc30778094f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jul 2019 02:41:24 -0500 Subject: gn: Add javascript-cytoscape-popper. * gn/packages/web.scm (javascript-cytoscape-popper): 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 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") -- cgit v1.2.3