aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorBonfaceKilz2020-05-26 17:06:29 +0300
committerBonfaceKilz2020-05-26 17:21:09 +0300
commitdee92e752878a7eae43ecacbbf085ec2b786b667 (patch)
treef722651c78615a0f2a35411232effa6641da24f6 /gn/packages/javascript.scm
parent924091cbde62fe2a1ec3c068a810d8d9c98a60f7 (diff)
downloadguix-bioinformatics-dee92e752878a7eae43ecacbbf085ec2b786b667.tar.gz
gn: add javascript-jszip
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index c2634f8..dd0ce14 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -1122,6 +1122,39 @@ requirements inside your form HTML tags. It can also automatically detects
your forms' modifications and adapts its validation accordingly.")
(license license:expat)))
+(define-public javascript-jszip
+ (package
+ (name "javascript-jszip")
+ (version "3.2.2") ; July 4, 2019
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Stuk/jszip")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "185n341knjqmmpzs7gjv9xd2id2vy85l9in2q058hsz36lz3rpjz"))))
+ (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/jszip"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (install-file (string-append dist "/jszip.js") targetdir)
+ (install-file (string-append dist "/jszip.min.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://stuk.github.io/jszip/")
+ (synopsis "JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API.")
+ (description
+ "JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API.")
+ (license license:expat)))
+
(define-public js-parsley
(package
(inherit javascript-parsley)