aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/javascript.scm
diff options
context:
space:
mode:
authorEfraim Flashner2019-09-26 11:57:27 -0500
committerEfraim Flashner2019-09-26 11:57:27 -0500
commit1347daa00f7da4de18065513ff0a79cbd5136d15 (patch)
tree744dfcd54fe57dd4b6e905bb5726debb3234fd21 /gn/packages/javascript.scm
parentdae506df675a046465ea4ab340c0e8acdd798857 (diff)
downloadguix-bioinformatics-1347daa00f7da4de18065513ff0a79cbd5136d15.tar.gz
gn: Add javascript-parsley, js-parsley.
* gn/packages/javascript.scm (javascript-parsley, js-parsley): New variables.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r--gn/packages/javascript.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index a6ee543..646683a 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -884,3 +884,44 @@ browser compatibility, including legacy browsers.
(license (list license:gpl2+
license:lgpl2.1+
license:mpl1.1)))) ; Any of these three
+
+(define-public javascript-parsley
+ (package
+ (name "javascript-parsley")
+ (version "2.9.1") ; May 28, 2019
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/guillaumepotier/Parsley.js")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0kb2hmnj9rry68qqmj0m4wjk0syrb0i3c2n31sr24y9m8pdr8nck"))))
+ (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/parsley"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/dist")))
+ (copy-recursively dist targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://parsleyjs.org/")
+ (synopsis "Javascript validation library")
+ (description
+ "Parsley is a javascript library which allows you to write in English your
+requirements inside your form HTML tags. It can also automatically detects
+your forms' modifications and adapts its validation accordingly.")
+ (license license:expat)))
+
+(define-public js-parsley
+ (package
+ (inherit javascript-parsley)
+ (name "js-parsley")
+ (arguments `(#:javascript-files '("dist/parsley.js")))
+ (build-system minify-build-system)))