From 32cb745eec1b249a56894f57686db28eb0a77e9b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Jul 2019 04:41:00 -0500 Subject: gn: Add javascript-cytoscape-dagre. * gn/packages/javascript.scm (javascript-cytoscape-dagre): New variable. --- gn/packages/javascript.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'gn/packages/javascript.scm') diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 0938fa8..d30031e 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -164,6 +164,40 @@ traditional UI -- similar to controls on map webapps.") directed graphs on the client-side.") (license license:expat))) +(define-public javascript-cytoscape-dagre + (package + (name "javascript-cytoscape-dagre") + (version "2.2.2") ; Sept. 26, 2018 + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cytoscape/cytoscape.js-dagre") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z0sh5q5cd0iirdyhlln83vmsvwn1sbh4zdmdh8k5hld075g4q64")))) + (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-dagre")) + (source (assoc-ref %build-inputs "source"))) + (install-file (string-append source "/cytoscape-dagre.js") targetdir))))) + (native-inputs `(("source" ,source))) + (propagated-inputs + `(("javascript-cytoscape" ,javascript-cytoscape) + ("javascript-dagre" ,javascript-dagre))) + (home-page "https://github.com/cytoscape/cytoscape.js-dagre") + (synopsis "Dagre layout for DAGs and trees for Cytoscape.js") + (description "The dagre layout organises the graph using a @dfn{directed +acyclic graph} (DAG) system, written by Chris Pettitt. It is especially +suitable for DAGs and trees.") + (license license:expat))) + ;; Author recommends using cytoscape-popper with tippy.js since qtip2 is no longer maintained (define-public javascript-cytoscape-qtip (package -- cgit v1.2.3