aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2019-09-29 15:44:07 +0300
committerEfraim Flashner2019-09-29 16:22:56 +0300
commita8849f31e257ab6f762d1b1babb029ccd0642d21 (patch)
tree1a999264b461cbb3d52630f8fabfaa2d0511dc6a
parentcccb0ba59d4b81ddcfe813bc4c0788ff1b366db5 (diff)
downloadguix-bioinformatics-a8849f31e257ab6f762d1b1babb029ccd0642d21.tar.gz
gn: Add javascript-md5, js-md5.
* gn/packages/javascript.scm (javascript-md5, js-md5): New variables.
-rw-r--r--gn/packages/javascript.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index bf23b5d..b12c49b 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -1006,3 +1006,42 @@ experience.")
(name "js-typeahead")
(arguments `())
(build-system minify-build-system)))
+
+(define-public javascript-md5
+ (package
+ (name "javascript-md5")
+ (version "0.7.3") ; Dec. 18, 2017
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/emn178/js-md5")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "01pz0lz8wkikarj1gn8h40hljipxlk3wmc4algbidwp5rs8qv4gf"))))
+ (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/md5"))
+ (source (assoc-ref %build-inputs "source")))
+ (install-file (string-append source "/src/md5.js") targetdir)
+ (install-file (string-append source "/build/md5.min.js") targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://github.com/emn178/js-md5")
+ (synopsis "MD5 hash function for JavaScript supports UTF-8 encoding")
+ (description
+ "js-md5 is a simple MD5 hash function for JavaScript supports UTF-8 encoding.")
+ (license license:expat)))
+
+(define-public js-md5
+ (package
+ (inherit javascript-md5)
+ (name "js-md5")
+ (arguments `(#:javascript-files '("src/md5.js")))
+ (build-system minify-build-system)))