aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorAlexander_Kabui2023-11-07 16:30:46 +0300
committerMunyoki Kilyungi2023-11-10 12:58:06 +0300
commit35f3f75aa945728868a5df1bfe0164cd917e9d4b (patch)
treeeeffc19deffe68263ba5a2a159d32bb8b63889f3 /gn/packages/javascript.scm
parent638abbad22c4942f273bf75aaf2f69a200bf58af (diff)
downloadguix-bioinformatics-35f3f75aa945728868a5df1bfe0164cd917e9d4b.tar.gz
gn: javascript: Add javascript-marked-highlight.
* gn/packages/javascript.scm (javascript-marked-highlight): New package. Reviewed-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index 3d4c7e5..05706ce 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -1946,3 +1946,33 @@ vector graphics.")
(description
"A low-level markdown compiler for parsing markdown without caching or blocking for long periods of time.")
(license license:expat)))
+
+(define-public javascript-marked-highlight
+ (package
+ (name "javascript-marked-highlight")
+ (version "2.0.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://cdn.jsdelivr.net/npm/marked-highlight@" version "/lib/index.umd.min.js"))
+ (sha256
+ (base32
+ "087qcy77fm3r7dl6w0mxsqygmdpimrmksw78r4wkkkjdx9x9dshf"))))
+ (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/marked"))
+ (source (assoc-ref %build-inputs "source")))
+ (mkdir-p targetdir)
+ (copy-file source (string-append targetdir "/marked-highlight.js"))))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://github.com/markedjs/marked-highlight")
+ (synopsis "Highlight code blocks.")
+ (description
+ "Add code highlighting to marked.")
+ (license license:expat)))