[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47768] [PATCH 19/37] gnu: Add ocaml-ppx-compare.
From: |
pukkamustard |
Subject: |
[bug#47768] [PATCH 19/37] gnu: Add ocaml-ppx-compare. |
Date: |
Wed, 14 Apr 2021 11:12:45 +0200 |
* gnu/packages/ocaml.scm (ocaml-ppx-compare): New variable.
(ocaml4.07-ppx-compare): Inherit from ocaml-ppx-compare.
---
gnu/packages/ocaml.scm | 64 +++++++++++++++++++++++++-----------------
1 file changed, 38 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e5b304fa81..271627ff1b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4941,30 +4941,24 @@ OCaml AST in the OCaml syntax;
#t)))))
(properties '()))))
-(define-public ocaml4.07-ppx-compare
+(define-public ocaml-ppx-compare
(package
- (name "ocaml4.07-ppx-compare")
- (version "0.11.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/janestreet/ppx_compare")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
+ (name "ocaml-ppx-compare")
+ (version "0.14.0")
+ (source
+ (janestreet-origin "ppx_compare" version
+
"0mqxa2s194nif7x4fjn1p5gd9i3bakr8nv27gf8x1g5nmi8q9pmp"))
(build-system dune-build-system)
- (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))))
(arguments
- `(#:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
- (properties `((upstream-name . "ppx_compare")))
+ ;; Tests are currenlty failing
+ ;; (see https://github.com/janestreet/ppx_compare/issues/10)
+ '(#:tests? #f))
+ (propagated-inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (properties `((upstream-name . "ppx_compare")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-compare))))
(home-page "https://github.com/janestreet/ppx_compare")
(synopsis "Generation of comparison functions from types")
(description "Generation of fast comparison functions from type expressions
@@ -4975,6 +4969,24 @@ flexibility by allowing you to override them for a
specific type and more safety
by making sure that you only compare comparable values.")
(license license:asl2.0)))
+(define-public ocaml4.07-ppx-compare
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-ppx-compare)
+ (name "ocaml-ppx-compare")
+ (version "0.11.1")
+ (home-page "https://github.com/janestreet/ppx_compare")
+ (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
+ "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
+ (properties `((upstream-name . "ppx_compare"))))))
+
(define-public ocaml4.07-fieldslib
(package
(name "ocaml4.07-fieldslib")
@@ -5193,7 +5205,7 @@ string conversion.")
(build-system dune-build-system)
(inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
+ ("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
@@ -5262,7 +5274,7 @@ storage of large amounts of data.")
(build-system dune-build-system)
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
+ ("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
("ocaml-migrate-parsetree"
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
@@ -5630,7 +5642,7 @@ position.")
#:dune ,ocaml4.07-dune))
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
+ ("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
("ocaml-ppx-here" ,ocaml4.07-ppx-here)
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
("ocaml-migrate-parsetree"
@@ -5664,7 +5676,7 @@ useful errors on failure.")
(propagated-inputs
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
- ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
+ ("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
("ocaml-ppx-here" ,ocaml4.07-ppx-here)
@@ -5770,7 +5782,7 @@ from type definitions.")
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(propagated-inputs
- `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
+ `(("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
--
2.31.1
- [bug#47768] [PATCH 08/37] gnu: Add ocaml-stdio., (continued)
- [bug#47768] [PATCH 08/37] gnu: Add ocaml-stdio., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 11/37] gnu: ocaml-migrate-parsetree: Update to 2.1.0., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 23/37] gnu: Add ocaml-ppx-custom-printf., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 24/37] gnu: Add ocaml-ppx-hash., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 22/37] gnu: Add ocaml-ppx-assert., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 25/37] gnu: Add ocaml-ppx-enumerate., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 20/37] gnu: Add ocaml-ppx-here., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 34/37] gnu: Add ocaml-time-now., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 36/37] gnu: Add ocaml-angstrom., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 30/37] gnu: Add ocaml-ppx-optcomp, pukkamustard, 2021/04/14
- [bug#47768] [PATCH 19/37] gnu: Add ocaml-ppx-compare.,
pukkamustard <=
- [bug#47768] [PATCH 17/37] gnu: Add ocaml-ppx-let., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 21/37] gnu: Add ocaml-ppx-cold., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 26/37] gnu: Add ocaml-ppx-js-style., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 27/37] gnu: Add ocaml-ppx-base., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 28/37] gnu: Add ocaml-fieldslib., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 32/37] gnu: Add ocaml-jst-config., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 31/37] gnu: Add ocaml-ppx-optional., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 33/37] gnu: Add ocaml-jane-street-headers., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 35/37] gnu: Add ocaml-ppx-inline-test., pukkamustard, 2021/04/14
- [bug#47768] [PATCH 37/37] gnu: Add ocaml-uri., pukkamustard, 2021/04/14