aboutsummaryrefslogtreecommitdiff
path: root/gn/packages
diff options
context:
space:
mode:
authorEfraim Flashner2019-07-22 07:33:47 -0500
committerEfraim Flashner2019-07-22 07:41:42 -0500
commita41820f03ec635a91ebdaed5a6b8e38380d80801 (patch)
tree71a830788954dc566d84be5435fa0d99082d522f /gn/packages
parent8475b1964812556d36abac6c5376b7df87836454 (diff)
downloadguix-bioinformatics-a41820f03ec635a91ebdaed5a6b8e38380d80801.tar.gz
gn: Add javascript-canvas-toblob.
* gn/packages/javascript.scm (javascript-canvas-toblob): New variable.
Diffstat (limited to 'gn/packages')
-rw-r--r--gn/packages/javascript.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index ece996c..8cd206f 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -470,3 +470,40 @@ visualization components and a data-driven approach to DOM manipulation.")
transitions, allowing you to set multiple attributes, styles or properties
simultaneously with more concise syntax.")
(license license:bsd-3)))
+
+(define-public javascript-canvas-toblob
+ (let ((commit "f1a01896135ab378aa5c0118eadd81da55e698d8") ; May 26, 2016
+ (revision "1"))
+ (package
+ (name "javascript-canvas-toblob")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/eligrey/canvas-toBlob.js")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ly7qnavf9h26sgynccf00hf2ybdwyn0kvnl7i3milz3big02qdm"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (name "canvas-toblob")
+ (targetdir (string-append out "/share/genenetwork/javascript/" name))
+ (source (assoc-ref %build-inputs "source")))
+ (install-file (string-append source "/canvas-toBlob.js") targetdir)
+ (install-file (string-append source "/LICENSE.md")
+ (string-append out "/share/doc/" ,name "-" ,version))))))
+ (native-inputs
+ `(("source" ,source)))
+ (home-page "https://github.com/eligrey/canvas-toBlob.js/")
+ (synopsis "canvas.toBlob() implementation")
+ (description "canvas-toBlob.js implements the standard HTML5
+@code{canvas.toBlob()} and @code{canvas.toBlobHD()} methods in browsers that do
+not natively support it.")
+ (license license:expat))))