From 065a1538929e5215210ea98830e40bc6ba8d4587 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Wed, 17 Nov 2021 18:54:32 +0300 Subject: gn: javascript: Add javascript-xterm-addon-fit * gn/packages/javascript.scm: (javascript-xterm-addon-fit): New package --- gn/packages/javascript.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gn/packages') 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") -- cgit v1.2.3