[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/22: gnu: Add ocaml-ppx-enumerate.
From: |
guix-commits |
Subject: |
04/22: gnu: Add ocaml-ppx-enumerate. |
Date: |
Sun, 13 Jun 2021 11:16:18 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit f804b3e88c8c281a7e14dcb0aec76ea037f71053
Author: pukkamustard <pukkamustard@posteo.net>
AuthorDate: Tue Jun 1 20:23:07 2021 +0000
gnu: Add ocaml-ppx-enumerate.
* gnu/packages/ocaml.scm (ocaml-ppx-enumerate): New variable.
(ocaml4.07-ppx-enumerate): Inherit from ocaml-ppx-enumerate.
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
gnu/packages/ocaml.scm | 54 ++++++++++++++++++++++++++++++--------------------
1 file changed, 32 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index a97162c..6484a53 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5319,31 +5319,23 @@ hash functions from type exrpessions and definitions.")
"1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
(properties `((upstream-name . "ppx_hash"))))))
-(define-public ocaml4.07-ppx-enumerate
+(define-public ocaml-ppx-enumerate
(package
- (name "ocaml4.07-ppx-enumerate")
- (version "0.11.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/janestreet/ppx_enumerate")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
+ (name "ocaml-ppx-enumerate")
+ (version "0.14.0")
+ (source
+ (janestreet-origin
+ "ppx_enumerate" version
+ "1ij6sffgqhnjwnj9brhrrw1c6xgxlh0s6r17x1qkgnyrc73gfsz8"))
(build-system dune-build-system)
(arguments
- `(#:tests? #f ; no test suite
- #:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
+ `(#:tests? #f)) ; no test suite
(propagated-inputs
- `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_enumerate")))
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (properties `((upstream-name . "ppx_enumerate")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-enumerate))))
(home-page "https://github.com/janestreet/ppx_enumerate")
(synopsis "Generate a list containing all values of a finite type")
(description "Ppx_enumerate is a ppx rewriter which generates a definition
@@ -5351,6 +5343,24 @@ for the list of all values of a type (for a type which
only has finitely
many values).")
(license license:asl2.0)))
+(define-public ocaml4.07-ppx-enumerate
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-ppx-enumerate)
+ (name "ocaml-ppx-enumerate")
+ (version "0.11.1")
+ (home-page "https://github.com/janestreet/ppx_enumerate")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
+ (properties `((upstream-name . "ppx_enumerate"))))))
+
(define-public ocaml4.07-ppx-bench
(package
(name "ocaml4.07-ppx-bench")
@@ -5845,7 +5855,7 @@ from type definitions.")
#:dune ,ocaml4.07-dune))
(propagated-inputs
`(("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
- ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
+ ("ocaml-ppx-enumerate" ,(package-with-ocaml4.07 ocaml-ppx-enumerate))
("ocaml-ppx-hash" ,(package-with-ocaml4.07 ocaml-ppx-hash))
("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
- branch master updated (628a6c5 -> d9e1469), guix-commits, 2021/06/13
- 02/22: gnu: Add ocaml-ppx-custom-printf., guix-commits, 2021/06/13
- 10/22: gnu: Add ocaml-ppx-optional., guix-commits, 2021/06/13
- 03/22: gnu: Add ocaml-ppx-hash., guix-commits, 2021/06/13
- 06/22: gnu: Add ocaml-ppx-base., guix-commits, 2021/06/13
- 07/22: gnu: Add ocaml-fieldslib., guix-commits, 2021/06/13
- 04/22: gnu: Add ocaml-ppx-enumerate.,
guix-commits <=
- 01/22: gnu: Add ocaml-ppx-assert., guix-commits, 2021/06/13
- 16/22: gnu: Add ocaml-uri., guix-commits, 2021/06/13
- 08/22: gnu: Add ocaml-ppx-fields-conv., guix-commits, 2021/06/13
- 11/22: gnu: Add ocaml-jst-config., guix-commits, 2021/06/13
- 05/22: gnu: Add ocaml-ppx-js-style., guix-commits, 2021/06/13
- 09/22: gnu: Add ocaml-ppx-optcomp, guix-commits, 2021/06/13
- 14/22: gnu: Add ocaml-ppx-inline-test., guix-commits, 2021/06/13
- 12/22: gnu: Add ocaml-jane-street-headers., guix-commits, 2021/06/13
- 22/22: gnu: Add ocaml-js-of-ocaml., guix-commits, 2021/06/13
- 17/22: gnu: Add ocaml-graphics., guix-commits, 2021/06/13