aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-22 04:48:27 -0500
committerEfraim Flashner2019-07-22 04:49:52 -0500
commit601f05f1a34f7ba6b242fc5eb3f40d74dcd228ba (patch)
tree7bf713f190604a9187f363d84fb2c2964bb4a98a /gn/packages/javascript.scm
parent25f545fc897b3e7573c55e9e3a167e3a3a189888 (diff)
downloadguix-bioinformatics-601f05f1a34f7ba6b242fc5eb3f40d74dcd228ba.tar.gz
gn: Add javascript-dagre.
* gn/packages/javascript.scm (javascript-dagre): New variable.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index cd377d8..0938fa8 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -133,6 +133,37 @@ for panning and zooming in Cytoscape.js by giving less savvy users a more
traditional UI -- similar to controls on map webapps.")
(license license:expat)))
+(define-public javascript-dagre
+ (package
+ (name "javascript-dagre")
+ (version "0.8.4") ; Dec. 9, 2018
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dagrejs/dagre.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1svlvd66bnskicqb7kizx57s97z9lkxssh1g5sgymw7ddfdbhy5l"))))
+ (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/dagre"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (copy-recursively dist targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://github.com/dagrejs/dagre")
+ (synopsis "Directed graph layout for JavaScript")
+ (description "Dagre is a JavaScript library that makes it easy to lay out
+directed graphs on the client-side.")
+ (license license:expat)))
+
;; Author recommends using cytoscape-popper with tippy.js since qtip2 is no longer maintained
(define-public javascript-cytoscape-qtip
(package