diff options
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r-- | gn/packages/javascript.scm | 197 |
1 files changed, 169 insertions, 28 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 7f9f35d..a70dccd 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -2058,34 +2058,33 @@ vector graphics.") (define-public javascript-ace (package - (name "javascript-ace") - (version "1.31.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ajaxorg/ace-builds.git") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "08rfyrjfjjgb42x4if5qqfyvv8ag2qmf6vsbs7qrcnzgrac66m35")))) - (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/ace")) - (source (assoc-ref %build-inputs "source")) - (dist (string-append source "/src-min-noconflict"))) - (copy-recursively dist targetdir))))) - (native-inputs `(("source" ,source))) - (home-page "https://github.com/ajaxorg/ace-builds") - (synopsis "Ace is a code editor written in JavaScript.") - (description - "Ace is a code editor written in JavaScript. ") - (license license:expat))) + (name "javascript-ace") + (version "1.31.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ajaxorg/ace-builds.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08rfyrjfjjgb42x4if5qqfyvv8ag2qmf6vsbs7qrcnzgrac66m35")))) + (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/ace")) + (source (assoc-ref %build-inputs "source")) + (dist (string-append source "/src-min-noconflict"))) + (copy-recursively dist targetdir))))) + (native-inputs `(("source" ,source))) + (home-page "https://github.com/ajaxorg/ace-builds") + (synopsis "Ace is a code editor written in JavaScript.") + (description "Ace is a code editor written in JavaScript. ") + (license license:bsd-3))) (define-public javascript-uikit (package @@ -2178,3 +2177,145 @@ for developing fast and powerful web interfaces.") (description "JavaScript plugin for finding links in plain-text and highlightinging links within strings that contain HTML markup.") (license license:expat))) + +(define-public javascript-diff2html + (package + (name "javascript-diff2html") + (version "3.4.48") + (source + (origin + (method url-fetch) + (uri (string-append "https://cdn.jsdelivr.net/npm/diff2html@" version + "/bundles/js/diff2html.min.js")) + (sha256 + (base32 "02sqk3i5l1viw2dq2c2z4ja9mgsn9cks9l4ln1fsw4y91fw1m6n5")))) + (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/diff2html"))) + (mkdir-p targetdir) + (copy-file source + (string-append targetdir "/diff2html.min.js")))))) + (native-inputs `(("source" ,source))) + (home-page "https://diff2html.xyz/") + (synopsis "Diff parser and pretty html generator.") + (description + "diff2html generates pretty HTML diffs from git diff or unified diff output.") + (license license:expat))) + +(define-public javascript-diff2html-ui + (package + (inherit javascript-diff2html) + (name "javascript-diff2html-ui") + (version "3.4.48") + (source + (origin + (method url-fetch) + (uri (string-append "https://cdn.jsdelivr.net/npm/diff2html@" version + "/bundles/css/diff2html.min.css")) + (sha256 + (base32 "0y05qm8si1nd5l9q67il36p6q1xkbffrzlp7q6pli9sraghlmh10")))) + (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/diff2html")) + (source (assoc-ref %build-inputs "source"))) + (mkdir-p targetdir) + (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))) + +(define-public javascript-highlight + (package + (name "javascript-highlight") + (version "11.10.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/" version + "/highlight.min.js")) + (sha256 + (base32 "0cpdabxn5hbij3ci5gb769mi0qmmxvgqxi6d1x2ay1y4j2pgj7j7")))) + (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/highlight")) + (source (assoc-ref %build-inputs "source"))) + (mkdir-p targetdir) + (copy-file source + (string-append targetdir "/highlight.min.js")))))) + (native-inputs `(("source" ,source))) + (home-page "https://highlightjs.org/") + (synopsis "Highlight.js is a syntax highlighter written in JavaScript.") + (description + "JavaScript syntax highlighter with language auto-detection and zero dependencies.") + (license license:bsd-3))) + +(define-public javascript-highlight-ui + (package + (inherit javascript-highlight) + (name "javascript-highlight-ui") + (version "11.10.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/" version + "/styles/default.min.css")) + (sha256 + (base32 "1ky70fgj8ixlr9h01w4g3fyj6yl8khqyfchmqibc71hxjb00mppv")))) + (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/highlight")) + (source (assoc-ref %build-inputs "source"))) + (mkdir-p targetdir) + (copy-file source + (string-append targetdir "/default.min.css")))))) + (native-inputs `(("source" ,source))))) |