aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorEfraim Flashner2020-09-07 06:35:41 -0500
committerEfraim Flashner2020-09-07 06:35:41 -0500
commitd59a0232dbc699caf991f00b96038ccd62005927 (patch)
tree0ff54530e3f2ffd506ac2de6bed58eeaff419f7c /gn/packages/javascript.scm
parentb4743a5b4840f1b5bed6eaacc861ac9eaa25d61d (diff)
downloadguix-bioinformatics-d59a0232dbc699caf991f00b96038ccd62005927.tar.gz
ratpub: Use js-filesaver-1.3.2.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index 51e0e10..1325a29 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -1,6 +1,7 @@
(define-module (gn packages javascript)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages javascript)
#:use-module (gn packages web)
#:use-module (guix packages)
#:use-module (guix utils)
@@ -801,6 +802,31 @@ not natively support it.")
client-side, and is perfect for web apps that generates files on the client.")
(license license:expat)))
+(define-public js-filesaver-1.3.2
+ (package
+ (inherit js-filesaver)
+ (name "js-filesaver")
+ (version "1.3.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/eligrey/FileSaver.js")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "02f34yr56i5fyppna52bhn6i9wj0zhvj4vp9vkg9v74yls1hdczz"))))
+ (arguments
+ `(#:javascript-files '("FileSaver.js")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-unminified-version
+ (lambda* (#:key outputs #:allow-other-keys)
+ (install-file "FileSaver.js"
+ (string-append (assoc-ref outputs "out")
+ "/share/javascript"))
+ #t)))))))
+
(define-public javascript-underscore
(package
(name "javascript-underscore")