From dab09fb41a2ad47b1ef337a006bf270cbc1672f4 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 10 Nov 2023 16:35:11 +0300 Subject: gn: javascript: Add javascript-ace * gn/packages/javascript.scm (javascript-ace): New package. Reviewed-by: Munyoki Kilyungi --- gn/packages/javascript.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gn/packages') diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 05706ce..6471d65 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -1976,3 +1976,34 @@ vector graphics.") (description "Add code highlighting to marked.") (license license:expat))) + +(define-public javascript-ace + (package + (name "javascript-ace") + (version "1.31.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ajaxorg/ace-builds.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08rfyrjfjjgb42x4if5qqfyvv8ag2qmf6vsbs7qrcnzgrac66m35")))) + (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/ace")) + (source (assoc-ref %build-inputs "source")) + (dist (string-append source "/src-min-noconflict"))) + (copy-recursively dist targetdir))))) + (native-inputs `(("source" ,source))) + (home-page "https://github.com/ajaxorg/ace-builds") + (synopsis "Ace is a code editor written in JavaScript.") + (description + "Ace is a code editor written in JavaScript. ") + (license license:expat))) -- cgit v1.2.3