diff options
author | Efraim Flashner | 2019-09-22 08:21:33 -0500 |
---|---|---|
committer | Efraim Flashner | 2019-09-22 08:21:33 -0500 |
commit | 385c7fa29c7c562d3d36fbb5e34e8881a0d53d55 (patch) | |
tree | 61cab0ba2b3540f22ec2ef3032e669637ba6a998 /gn/packages/javascript.scm | |
parent | 3f5bd54b15604c79a4483ab40fced16eca1d471b (diff) | |
download | guix-bioinformatics-385c7fa29c7c562d3d36fbb5e34e8881a0d53d55.tar.gz |
gn: Add javascript-colorbox, js-colorbox.
* gn/packages/javascript.scm (javascript-colorbox, js-colorbox): New
variables.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r-- | gn/packages/javascript.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 2d11a58..0f5c738 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -624,3 +624,44 @@ timestamps in your document intelligently. (e.g \"3 hours ago\").") (arguments `(#:javascript-files '("lib/timeago.js"))) (build-system minify-build-system))) + +(define-public javascript-colorbox + (package + (name "javascript-colorbox") + (version "1.4.36") ; Feb. 11, 2014 + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackmoore/colorbox.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0yjikn0mc1cmhcl3wbd5pjspi6n75swazsahm616xlra73qpagfn")))) + (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/colorbox")) + (source (assoc-ref %build-inputs "source"))) + (install-file (string-append source "/jquery.colorbox.js") targetdir) + (install-file (string-append source "/jquery.colorbox-min.js") targetdir) + )))) + (native-inputs `(("source" ,source))) + (home-page "http://www.jacklmoore.com/colorbox/") + (synopsis "Lightweight customizable lightbox plugin for jQuery") + (description + "Colorbox is a lightweight customizable lightbox plugin for jQuery.") + (license license:expat))) + +(define-public js-colorbox + (package + (inherit javascript-colorbox) + (name "js-colorbox") + (arguments + `(#:javascript-files '("jquery.colorbox.js"))) + (build-system minify-build-system))) |