From c7613f54d4c6900017064903df2a83ab06841139 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 14 Aug 2024 15:49:52 +0300 Subject: gn: javascript: Add javascript-highlight-ui. * gn/packages/javascript.scm (javascript-highight-ui): New package. Reviewed-by: Munyoki Kilyungi --- gn/packages/javascript.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gn') diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index eb9b9e4..a70dccd 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -2292,3 +2292,30 @@ for developing fast and powerful web interfaces.") (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))))) -- cgit v1.2.3