diff options
author | Alexander_Kabui | 2024-08-14 15:49:50 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-08-15 12:20:01 +0300 |
commit | e292026720467277e36097aca3b1b4f427134ba7 (patch) | |
tree | 4c0147a70f7cc29f65e7e39f660b875943614c53 | |
parent | cd3bd6af0728991e69564a94bce34fb7ed62c41c (diff) | |
download | guix-bioinformatics-e292026720467277e36097aca3b1b4f427134ba7.tar.gz |
gn: javascript: Add javascript-diff.
* gn/packages/javascript.scm (javascript-diff): New package.
Reviewed-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn/packages/javascript.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index ba27e4c..3e1d558 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -2232,3 +2232,32 @@ for developing fast and powerful web interfaces.") (copy-file source (string-append targetdir "/diff2html.min.css")))))) (native-inputs `(("source" ,source))))) + +(define-public javascript-diff + (package + (name "javascript-diff") + (version "5.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://cdn.jsdelivr.net/npm/diff@" version + "/dist/diff.min.js")) + (sha256 + (base32 "0zvbllgfyq8x3hjkygc9fd0gqqkbvz6qa02mcilvs6djfj9vsa9s")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder (begin + (use-modules (guix build utils)) + (let* ((source (assoc-ref %build-inputs "source")) + (out (assoc-ref %outputs "out")) + (targetdir (string-append out + "/share/genenetwork2/javascript/jsdiff"))) + (mkdir-p targetdir) + (copy-file source + (string-append targetdir "/diff.min.js")))))) + (native-inputs `(("source" ,source))) + (home-page "https://github.com/kpdecker/jsdiff#readme") + (synopsis "A JavaScript text differencing implementation. ") + (description "A JavaScript text differencing implementation.") + (license license:bsd-3))) |