diff options
author | Efraim Flashner | 2019-10-02 04:59:18 -0500 |
---|---|---|
committer | Efraim Flashner | 2019-10-02 04:59:18 -0500 |
commit | c95910fdde6adfff4e87c4d36c8ffeccf9968ffe (patch) | |
tree | cebbc527f9665481b2fba24d5ca1ee5bf03bb1b8 /gn/packages | |
parent | d5116b8364cc4f34e48a5407628c9666b3faf15e (diff) | |
download | guix-bioinformatics-c95910fdde6adfff4e87c4d36c8ffeccf9968ffe.tar.gz |
gn: Add javascript-jquery-ui, js-jquery-ui.
* gn/packages/javascript.scm (javascript-jquery-ui, js-jquery-ui): New
variables.
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/javascript.scm | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 6bf02f9..79a8060 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -8,7 +8,7 @@ #:use-module (guix git-download) #:use-module (guix build-system minify) #:use-module (guix build-system trivial) - #:use-module (srfi srfi-1)) + #:use-module ((srfi srfi-1) #:hide (zip))) ;; see color-make package for great example - also install-file and invoke @@ -1079,3 +1079,45 @@ experience.") (description "Tooltips for d3.js visualizations.") (license license:expat))) + + +(define-public javascript-jquery-ui + (package + (name "javascript-jquery-ui") + (version "1.9.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://jqueryui.com/resources/download/jquery-ui-" version ".zip")) + (sha256 + (base32 + "0r0ypq7f5rvyjc8fjywc5zrwas6n6by02zl7lx78njgnb0cp04h1")))) + (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/jquery-ui")) + (source (assoc-ref %build-inputs "source"))) + (invoke (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip") + source) + (copy-recursively (string-append "jquery-ui-" ,version "/ui") targetdir) + #t)))) + (native-inputs + `(("source" ,source) + ("unzip" ,unzip))) + (home-page "https://jqueryui.com/") + (synopsis "user interface interactions built on top of jquery") + (description + "jQuery UI is a curated set of user interface interactions, effects, +widgets, and themes built on top of the jQuery JavaScript Library.") + (license license:expat))) + +(define-public js-jquery-ui + (package + (inherit javascript-jquery-ui) + (name "js-jquery-ui") + (arguments `(#:javascript-files '("ui/jquery-ui.js"))) + (build-system minify-build-system))) |