diff options
author | Efraim Flashner | 2019-07-19 08:49:31 -0500 |
---|---|---|
committer | Efraim Flashner | 2019-07-21 02:48:59 -0500 |
commit | 05c481ae432c9b9e9db1a5d9fbeceddfc6cb678d (patch) | |
tree | 1760c4702b2d4f3c408f1c84af06de68dc118c13 /gn/packages | |
parent | b1fb944108fefe0eb727ba27bfccd30dc33d5a7a (diff) | |
download | guix-bioinformatics-05c481ae432c9b9e9db1a5d9fbeceddfc6cb678d.tar.gz |
gn: javascript-cytoscape-qtip: Clean up definition.
* gn/packages/javascript.scm (javascript-cytoscape-qtip)[source]:
Download using 'git-fetch'.
[native-inputs]: Remove gzip, tar.
[arguments]: Adjust build accordingly.
[synopsis]: Update synopsis.
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/javascript.scm | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index a32d7c4..9b8d006 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -139,42 +139,36 @@ 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))) -;; https://github.com/cytoscape/cytoscape.js-qtip/archive/2.7.1.tar.gz +;; Author recommends using cytoscape-popper with tippy.js since qtip2 is no longer maintained (define-public javascript-cytoscape-qtip (package - ;; (inherit javascript-cytoscape) - (name "javascript-cytoscape-qtip") - (version "2.7.1") ; ancient version - (source - (origin - (method url-fetch) - (uri (string-append "https://github.com/cytoscape/cytoscape.js-qtip/archive/" version ".tar.gz")) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "0f2qhxi9qx5r3rcmxqgdqnwd9apnjlb4s4hckwhaqgsp6rf8lzlb")))) - (inputs `(("javascript-cytoscape" ,javascript-cytoscape))) - (build-system trivial-build-system) - (native-inputs `(("gzip" ,gzip) - ("tar" ,tar) - ("source" ,source))) - (arguments - `(#:modules ((guix build utils)) - #:builder - (begin - (use-modules (guix build utils)) - (let* ((out (assoc-ref %outputs "out")) - (tarcmd (string-append (assoc-ref %build-inputs "tar") "/bin/tar")) - (targetdir (string-append out "/share/genenetwork2/javascript/cytoscape-qtip")) - (source (assoc-ref %build-inputs "source"))) - (setenv "PATH" (string-append - (assoc-ref %build-inputs "tar") "/bin" ":" - (assoc-ref %build-inputs "gzip") "/bin")) - (invoke "tar" "xvf" (assoc-ref %build-inputs "source") "--strip-components=1") - (mkdir-p targetdir) - (install-file "cytoscape-qtip.js" targetdir) - )))) + (name "javascript-cytoscape-qtip") + (version "2.7.1") ; May 4, 2017 + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cytoscape/cytoscape.js-qtip") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rdwdkx9j1lqzks8gi8ilkcbryswdx653569av4i74pv4j93v6zx")))) + (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-qtip")) + (source (assoc-ref %build-inputs "source"))) + (install-file (string-append source "/cytoscape-qtip.js") targetdir))))) + (native-inputs `(("source" ,source))) + (propagated-inputs ; TODO: Add qtip + `(("javascript-cytoscape" ,javascript-cytoscape) + ("jquery" ,web-jquery))) (home-page "https://github.com/cytoscape/cytoscape.js") - (synopsis "Cytoscape.js") + (synopsis "Cytoscape.js extension that wraps the QTip jQuery library") (description "Cytoscape.") (license license:expat))) |