diff options
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r-- | gn/packages/javascript.scm | 39 |
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))) |