aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2019-09-23 02:54:15 -0500
committerEfraim Flashner2019-09-23 02:54:15 -0500
commit5c265404c86664323229b641b0faa71c1b6b9b9c (patch)
tree613ff77b7763af416a8a8ccb692a5a1dc59cbb5e /gn
parente4143ab02f03d6f765ca9cea800ee94df4e2e55e (diff)
downloadguix-bioinformatics-5c265404c86664323229b641b0faa71c1b6b9b9c.tar.gz
gn: Add javascript-nouislider, js-nouislider.
* gn/packages/javascript.scm (javascript-nouislider, js-nouislider): New variables.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/javascript.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm
index 0f5c738..4997a32 100644
--- a/gn/packages/javascript.scm
+++ b/gn/packages/javascript.scm
@@ -665,3 +665,43 @@ timestamps in your document intelligently. (e.g \"3 hours ago\").")
(arguments
`(#:javascript-files '("jquery.colorbox.js")))
(build-system minify-build-system)))
+
+(define-public javascript-nouislider
+ (package
+ (name "javascript-nouislider")
+ (version "8.0.2") ; July 6, 2015
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/leongersen/noUiSlider.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1ngfll2hr9w2q4869n0prfn66lcfyjshvhq4pgi0lb63xla8asfp"))))
+ (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/nouislider"))
+ (source (assoc-ref %build-inputs "source"))
+ (dist (string-append source "/distribute")))
+ (copy-recursively dist targetdir)))))
+ (native-inputs `(("source" ,source)))
+ (home-page "https://refreshless.com/nouislider/")
+ (synopsis "Javascript range slider")
+ (description
+ "Nouislider is a lightweight JavaScript range slider with full touch support.")
+ (license license:expat)))
+
+(define-public js-nouislider
+ (package
+ (inherit javascript-nouislider)
+ (name "js-nouislider")
+ (arguments
+ `(#:javascript-files '("distribute/nouislider.js")))
+ (build-system minify-build-system)))