Subject: [PATCH v2 4/8] gnu: Add cl-distributions.

From: jgart <[email-masked]>
Date: Sun, 15 Jan 2023 15:55:48 -0600

* gnu/packages/lisp-xyz.scm (cl-distributions, sbcl-distributions):
New variables.
---
 gnu/packages/lisp-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index e1b1f74d61..77b885adc1 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -26788,6 +26788,47 @@ (define-public ecl-special-functions
     ;; https://github.com/Lisp-Stat/special-functions/issues/4
     (arguments (list #:tests? #f))))
 
+(define-public sbcl-distributions
+  (let ((commit "ea72622073ee7e005dfdc621ce1e5a83b22bb39e")
+        (revision "0"))
+    (package
+      (name "sbcl-distributions")
+      (version (git-version "1.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/Lisp-Stat/distributions")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1fkzigd0s0s0mvszgmv04yc8jp9gm4812445hfh6kpz6cjy5zpsk"))))
+      (build-system asdf-build-system/sbcl)
+      ;; https://github.com/Lisp-Stat/distributions/issues/1
+      (arguments (list #:tests? #f))
+      (native-inputs (list sbcl-fiveam))
+      (inputs
+        (list sbcl-alexandria
+              sbcl-anaphora
+              sbcl-array-operations
+              sbcl-cephes
+              sbcl-numerical-utilities
+              sbcl-special-functions
+              sbcl-let-plus
+              sbcl-float-features))
+      (home-page "https://lisp-stat.dev/docs/manuals/distributions/")
+      (synopsis "Random variates for Common Lisp")
+      (description "The Distributions package provides a collection of
+probabilistic distributions and related functions")
+      (license license:ms-pl))))
+
+(define-public cl-distributions
+  (sbcl-package->cl-source-package sbcl-distributions))
+
+;; https://github.com/Lisp-Stat/cephes.cl/issues/2
+#;(define-public ecl-distributions
+  (sbcl-package->ecl-package sbcl-distributions))
+
 (define-public sbcl-seria
   (let ((commit "2bba04dc6abdc0b85a511cae9c460942e2ad305a")
         (revision "0"))
-- 
2.38.1