From 6a9ab009559e0de8a97ddb479be71063af062887 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Sat, 16 Sep 2017 02:11:04 +0000 Subject: Add web-jquery --- gn/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++ gn/packages/yaj.scm | 1 + 2 files changed, 39 insertions(+) diff --git a/gn/packages/web.scm b/gn/packages/web.scm index 873e003..bdd637c 100644 --- a/gn/packages/web.scm +++ b/gn/packages/web.scm @@ -10,6 +10,44 @@ #:use-module (guix build-system trivial) #:use-module (srfi srfi-1)) +; + +(define-public web-jquery + (package + (name "web-jquery") + (version "3.2.1") + (source + (origin + (method url-fetch) + ; https://github.com/jquery/jquery/archive/3.2.1.zip + (uri (string-append "https://github.com/jquery/jquery/archive/" version ".zip")) + (file-name (string-append name "-" version)) + (sha256 + (base32 "0a8sq7a52bh3a4slf03yfclwsv4iadlzmha4v6kqfby5sd66si18")))) + (build-system trivial-build-system) + (native-inputs `(("source" ,source) + ("unzip" ,unzip))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (let* ((out (assoc-ref %outputs "out")) + (name "jquery") + (targetdir (string-append out "/share/web/" name)) + ) + (begin + (use-modules (guix build utils)) + (let ((source (assoc-ref %build-inputs "source")) + (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")) + ) + (and + (mkdir-p targetdir) + (zero? (system* unzip source "-d" targetdir)) + )))))) + (home-page "http://jquery.com/") + (synopsis "JQuery web framework") + (description "jQuery.") + (license license:expat))) + (define-public web-bootstrap (let ((commit "betabeta")) (package diff --git a/gn/packages/yaj.scm b/gn/packages/yaj.scm index 5ca1bb8..5e0d103 100644 --- a/gn/packages/yaj.scm +++ b/gn/packages/yaj.scm @@ -72,6 +72,7 @@ ("python-jinja2" ,python-jinja2) ("python-mako" ,python-mako) ("python-misaka" ,python-misaka) + ("python-pygit2" ,python-pygit2) ("web-bootstrap" ,web-bootstrap) ("sassc" ,sassc) )) -- cgit v1.2.3