aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-17 18:54:32 +0300
committerBonfaceKilz2021-11-17 22:15:12 +0300
commit065a1538929e5215210ea98830e40bc6ba8d4587 (patch)
treea287019d7b5959a484a6288a02493d469baa26ef /gn
parent4d4a054ea1d191c561c9de171a789c5db939fd1d (diff)
downloadguix-bioinformatics-065a1538929e5215210ea98830e40bc6ba8d4587.tar.gz
gn: javascript: Add javascript-xterm-addon-fit
* gn/packages/javascript.scm: (javascript-xterm-addon-fit): New package
Diffstat (limited to 'gn')
-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 5f47c96..726eade 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -495,6 +495,36 @@ tables with minimal effort.")
(description "Style sheets for xtermjs")
(license license:expat)))
+
+(define-public javascript-xterm-addon-fit
+ (package
+ (inherit javascript-xterm)
+ (name "javascript-xterm-addon-fit")
+ (version "0.5.0") ; Nov 16 2021
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://cdn.jsdelivr.net/npm/xterm-addon-fit@" version
+ "/lib/xterm-addon-fit.min.js"))
+ (sha256
+ (base32
+ "0x47zj8wknisjjjqz6sasjn94nm803h5br8frypsbwhmdw6v9nak"))))
+ (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/xterm"))
+ (source (assoc-ref %build-inputs "source")))
+ (mkdir-p targetdir)
+ (copy-file source (string-append targetdir "xterm-addon-fit-min.js"))))))
+ (native-inputs `(("source" ,source)))
+ (synopsis "xterm terminal addon")
+ (description "An addon for xterm.js that enables fitting the terminal's dimensions to a containing element")
+ (license license:expat)))
+
(define-public javascript-datatables-buttons
(package
(name "javascript-datatables-buttons")