gnu: Add ocaml-ppx-compare.
* gnu/packages/ocaml.scm (ocaml-ppx-compare): New variable. (ocaml4.07-ppx-compare): Inherit from ocaml-ppx-compare. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
		
							parent
							
								
									5b61a1472b
								
							
						
					
					
						commit
						c35fd0374d
					
				
					 1 changed files with 38 additions and 26 deletions
				
			
		| 
						 | 
					@ -4953,30 +4953,24 @@ OCaml AST in the OCaml syntax;
 | 
				
			||||||
              #t)))))
 | 
					              #t)))))
 | 
				
			||||||
     (properties '()))))
 | 
					     (properties '()))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public ocaml4.07-ppx-compare
 | 
					(define-public ocaml-ppx-compare
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "ocaml4.07-ppx-compare")
 | 
					    (name "ocaml-ppx-compare")
 | 
				
			||||||
    (version "0.11.1")
 | 
					    (version "0.14.0")
 | 
				
			||||||
    (source (origin
 | 
					    (source
 | 
				
			||||||
              (method git-fetch)
 | 
					     (janestreet-origin "ppx_compare" version
 | 
				
			||||||
              (uri (git-reference
 | 
					                        "0mqxa2s194nif7x4fjn1p5gd9i3bakr8nv27gf8x1g5nmi8q9pmp"))
 | 
				
			||||||
                     (url "https://github.com/janestreet/ppx_compare")
 | 
					 | 
				
			||||||
                     (commit (string-append "v" version))))
 | 
					 | 
				
			||||||
              (file-name (git-file-name name version))
 | 
					 | 
				
			||||||
              (sha256
 | 
					 | 
				
			||||||
               (base32
 | 
					 | 
				
			||||||
                "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
 | 
					 | 
				
			||||||
    (build-system dune-build-system)
 | 
					    (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
 | 
					    (arguments
 | 
				
			||||||
     `(#:ocaml ,ocaml-4.07
 | 
					     ;; Tests are currenlty failing
 | 
				
			||||||
       #:findlib ,ocaml4.07-findlib
 | 
					     ;; (see https://github.com/janestreet/ppx_compare/issues/10)
 | 
				
			||||||
       #:dune ,ocaml4.07-dune))
 | 
					     '(#:tests? #f))
 | 
				
			||||||
    (properties `((upstream-name . "ppx_compare")))
 | 
					    (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")
 | 
					    (home-page "https://github.com/janestreet/ppx_compare")
 | 
				
			||||||
    (synopsis "Generation of comparison functions from types")
 | 
					    (synopsis "Generation of comparison functions from types")
 | 
				
			||||||
    (description "Generation of fast comparison functions from type expressions
 | 
					    (description "Generation of fast comparison functions from type expressions
 | 
				
			||||||
| 
						 | 
					@ -4987,6 +4981,24 @@ flexibility by allowing you to override them for a specific type and more safety
 | 
				
			||||||
by making sure that you only compare comparable values.")
 | 
					by making sure that you only compare comparable values.")
 | 
				
			||||||
    (license license:asl2.0)))
 | 
					    (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
 | 
					(define-public ocaml4.07-fieldslib
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "ocaml4.07-fieldslib")
 | 
					    (name "ocaml4.07-fieldslib")
 | 
				
			||||||
| 
						 | 
					@ -5205,7 +5217,7 @@ string conversion.")
 | 
				
			||||||
    (build-system dune-build-system)
 | 
					    (build-system dune-build-system)
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
					      `(("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-custom-printf" ,ocaml4.07-ppx-custom-printf)
 | 
				
			||||||
        ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
 | 
					        ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
 | 
				
			||||||
        ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
					        ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
				
			||||||
| 
						 | 
					@ -5274,7 +5286,7 @@ storage of large amounts of data.")
 | 
				
			||||||
    (build-system dune-build-system)
 | 
					    (build-system dune-build-system)
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
					      `(("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-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
				
			||||||
        ("ocaml-migrate-parsetree"
 | 
					        ("ocaml-migrate-parsetree"
 | 
				
			||||||
         ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
 | 
					         ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
 | 
				
			||||||
| 
						 | 
					@ -5642,7 +5654,7 @@ position.")
 | 
				
			||||||
       #:dune ,ocaml4.07-dune))
 | 
					       #:dune ,ocaml4.07-dune))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
					      `(("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-here" ,ocaml4.07-ppx-here)
 | 
				
			||||||
        ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
					        ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
				
			||||||
        ("ocaml-migrate-parsetree"
 | 
					        ("ocaml-migrate-parsetree"
 | 
				
			||||||
| 
						 | 
					@ -5676,7 +5688,7 @@ useful errors on failure.")
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
					      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
				
			||||||
        ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
 | 
					        ("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-custom-printf" ,ocaml4.07-ppx-custom-printf)
 | 
				
			||||||
        ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
 | 
					        ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
 | 
				
			||||||
        ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
 | 
					        ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
 | 
				
			||||||
| 
						 | 
					@ -5782,7 +5794,7 @@ from type definitions.")
 | 
				
			||||||
       #:findlib ,ocaml4.07-findlib
 | 
					       #:findlib ,ocaml4.07-findlib
 | 
				
			||||||
       #:dune ,ocaml4.07-dune))
 | 
					       #:dune ,ocaml4.07-dune))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (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-enumerate" ,ocaml4.07-ppx-enumerate)
 | 
				
			||||||
        ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
 | 
					        ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
 | 
				
			||||||
        ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
 | 
					        ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue