aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-14 15:49:52 +0300
committerMunyoki Kilyungi2024-08-15 12:20:41 +0300
commitc7613f54d4c6900017064903df2a83ab06841139 (patch)
tree649420c3c91af97db7e297457eb7c1fcb6bb40d1
parente1394034d6805456265f9e36ea6fa97904ea71df (diff)
downloadguix-bioinformatics-c7613f54d4c6900017064903df2a83ab06841139.tar.gz
gn: javascript: Add javascript-highlight-ui.
* gn/packages/javascript.scm (javascript-highight-ui): New package. Reviewed-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn/packages/javascript.scm27
1 files changed, 27 insertions, 0 deletions
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)))))