diff options
author | Efraim Flashner | 2019-09-23 04:41:49 -0500 |
---|---|---|
committer | Efraim Flashner | 2019-09-23 04:41:49 -0500 |
commit | df3f3b28510192bd88e23fc909e62c8d953806ab (patch) | |
tree | 1e452ab4e07a35a36652e96d59be04a3d4ccb671 /gn/packages/javascript.scm | |
parent | 7ade3b6fa77050916ca5e5bf5ba20fa5e13e363e (diff) | |
download | guix-bioinformatics-df3f3b28510192bd88e23fc909e62c8d953806ab.tar.gz |
gn: Add javascript-jstat, js-jstat.
* gn/packages/javascript.scm (javascript-jstat, js-jstat): New
variables.
Diffstat (limited to 'gn/packages/javascript.scm')
-rw-r--r-- | gn/packages/javascript.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gn/packages/javascript.scm b/gn/packages/javascript.scm index 8c88656..fe6c02c 100644 --- a/gn/packages/javascript.scm +++ b/gn/packages/javascript.scm @@ -799,3 +799,46 @@ for developers to install and for the end users to use.") (lambda* (#:key source #:allow-other-keys) (invoke "unzip" source)))))) (build-system minify-build-system))) + +(define-public javascript-jstat + (package + (name "javascript-jstat") + (version "1.9.1") ; Sept. 2, 2019 + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jstat/jstat.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0v69rkvgjykg2msjgpg38raypw7293jawlfxnicn86p2x0c57pzz")))) + (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/jstat")) + (source (assoc-ref %build-inputs "source")) + (dist (string-append source "/dist"))) + (copy-recursively dist targetdir))))) + (native-inputs `(("source" ,source))) + (home-page "http://jstat.github.io/") + (synopsis "Javascript statistical library") + (description + "jStat provides native javascript implementations of statistical functions. +jStat provides more functions than most libraries, including the weibull, +cauchy, poisson, hypergeometric, and beta distributions. For most +distributions, jStat provides the pdf, cdf, inverse, mean, mode, variance, and +a sample function, allowing for more complex calculations.") + (license license:expat))) + +(define-public js-jstat + (package + (inherit javascript-jstat) + (name "js-jstat") + (arguments `(#:javascript-files '("dist/jstat.js"))) + (build-system minify-build-system))) |