summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2020-01-16 19:41:21 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2020-01-17 13:44:37 +0100
commit7765f4a484a074785422bbd0a347e5f9cd4c47ae (patch)
tree2c41749b1b02fecc07f95c2ffed0b577e025504f
parent33865d3259204ad0e5448dec28e6e49ecf468a72 (diff)
downloadpatches-7765f4a484a074785422bbd0a347e5f9cd4c47ae.tar
patches-7765f4a484a074785422bbd0a347e5f9cd4c47ae.tar.gz
gnu: Add cl-mt19937.
* gnu/packages/lisp-xyz.scm (sbcl-mt19937, cl-mt19937, ecl-mt19937): New variables.
-rw-r--r--gnu/packages/lisp-xyz.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 187c4ed96a..53de2452f0 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -9236,3 +9236,29 @@ extensions to Common Lisp. It contains:
(define-public ecl-misc-extensions
(sbcl-package->ecl-package sbcl-misc-extensions))
+
+(define-public sbcl-mt19937
+ (package
+ (name "sbcl-mt19937")
+ (version "1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://common-lisp.net/project/asdf-packaging/"
+ "mt19937-latest.tar.gz"))
+ (sha256
+ (base32
+ "1iw636b0iw5ygkv02y8i41lh7xj0acglv0hg5agryn0zzi2nf1xv"))))
+ (build-system asdf-build-system/sbcl)
+ (synopsis "Mersenne Twister pseudo-random number generator")
+ (description
+ "MT19937 is a portable Mersenne Twister pseudo-random number generator
+for Common Lisp.")
+ (home-page "https://www.cliki.net/mt19937")
+ (license license:public-domain)))
+
+(define-public cl-mt19937
+ (sbcl-package->cl-source-package sbcl-mt19937))
+
+(define-public ecl-mt19937
+ (sbcl-package->ecl-package sbcl-mt19937))