gnu: Add ocaml-ppx-sexp-message.
* gnu/packages/ocaml.scm (ocaml-ppx-sexp-message): New variable. (ocaml4.07-ppx-sexp-message): Inherit from it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									166168c208
								
							
						
					
					
						commit
						acb69501da
					
				
					 1 changed files with 38 additions and 23 deletions
				
			
		| 
						 | 
					@ -5902,9 +5902,36 @@ building s-expressions from ocaml values.")
 | 
				
			||||||
      (properties '())
 | 
					      (properties '())
 | 
				
			||||||
      (license license:asl2.0))))
 | 
					      (license license:asl2.0))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public ocaml4.07-ppx-sexp-message
 | 
					(define-public ocaml-ppx-sexp-message
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "ocaml4.07-ppx-sexp-message")
 | 
					    (name "ocaml-ppx-sexp-message")
 | 
				
			||||||
 | 
					    (version "0.14.1")
 | 
				
			||||||
 | 
					    (source
 | 
				
			||||||
 | 
					      (origin
 | 
				
			||||||
 | 
					        (method git-fetch)
 | 
				
			||||||
 | 
					        (uri (git-reference
 | 
				
			||||||
 | 
					               (url "https://github.com/janestreet/ppx_sexp_message")
 | 
				
			||||||
 | 
					               (commit (string-append "v" version))))
 | 
				
			||||||
 | 
					        (file-name (git-file-name name version))
 | 
				
			||||||
 | 
					        (sha256
 | 
				
			||||||
 | 
					          (base32 "1lvsr0d68kakih1ll33hy6dxbjkly6lmky4q6z0h0hrcbd6z48k4"))))
 | 
				
			||||||
 | 
					    (build-system dune-build-system)
 | 
				
			||||||
 | 
					    (propagated-inputs
 | 
				
			||||||
 | 
					      (list ocaml-base ocaml-ppx-here ocaml-ppx-sexp-conv ocaml-ppxlib))
 | 
				
			||||||
 | 
					    (properties `((upstream-name . "ppx_sexp_message")
 | 
				
			||||||
 | 
					                  (ocaml4.07-variant . ,(delay ocaml4.07-ppx-sexp-message))))
 | 
				
			||||||
 | 
					    (home-page "https://github.com/janestreet/ppx_sexp_message")
 | 
				
			||||||
 | 
					    (synopsis "Ppx rewriter for easy construction of s-expressions")
 | 
				
			||||||
 | 
					    (description "Ppx_sexp_message aims to ease the creation of s-expressions
 | 
				
			||||||
 | 
					in OCaml.  This is mainly motivated by writing error and debugging messages,
 | 
				
			||||||
 | 
					where one needs to construct a s-expression based on various element of the
 | 
				
			||||||
 | 
					context such as function arguments.")
 | 
				
			||||||
 | 
					    (license license:expat)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					(define-public ocaml4.07-ppx-sexp-message
 | 
				
			||||||
 | 
					  (package-with-ocaml4.07
 | 
				
			||||||
 | 
					    (package
 | 
				
			||||||
 | 
					      (inherit ocaml-ppx-sexp-message)
 | 
				
			||||||
      (version "0.11.0")
 | 
					      (version "0.11.0")
 | 
				
			||||||
      (source (origin
 | 
					      (source (origin
 | 
				
			||||||
                (method url-fetch)
 | 
					                (method url-fetch)
 | 
				
			||||||
| 
						 | 
					@ -5914,26 +5941,14 @@ building s-expressions from ocaml values.")
 | 
				
			||||||
                (sha256
 | 
					                (sha256
 | 
				
			||||||
                 (base32
 | 
					                 (base32
 | 
				
			||||||
                  "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
 | 
					                  "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
 | 
				
			||||||
    (build-system dune-build-system)
 | 
					 | 
				
			||||||
    (arguments
 | 
					 | 
				
			||||||
     `(#:ocaml ,ocaml-4.07
 | 
					 | 
				
			||||||
       #:findlib ,ocaml4.07-findlib
 | 
					 | 
				
			||||||
       #:dune ,ocaml4.07-dune))
 | 
					 | 
				
			||||||
      (propagated-inputs
 | 
					      (propagated-inputs
 | 
				
			||||||
      `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
 | 
					        (list ocaml-base
 | 
				
			||||||
        ("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
 | 
					              ocaml-ppx-here
 | 
				
			||||||
        ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
 | 
					              ocaml-ppx-sexp-conv
 | 
				
			||||||
        ("ocaml-migrate-parsetree"
 | 
					              ocaml-migrate-parsetree
 | 
				
			||||||
         ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
 | 
					              ocaml-ppxlib))
 | 
				
			||||||
        ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
 | 
					      (properties '())
 | 
				
			||||||
    (properties `((upstream-name . "ppx_sexp_message")))
 | 
					      (license license:asl2.0))))
 | 
				
			||||||
    (home-page "https://github.com/janestreet/ppx_sexp_message")
 | 
					 | 
				
			||||||
    (synopsis "Ppx rewriter for easy construction of s-expressions")
 | 
					 | 
				
			||||||
    (description "Ppx_sexp_message aims to ease the creation of s-expressions
 | 
					 | 
				
			||||||
in OCaml.  This is mainly motivated by writing error and debugging messages,
 | 
					 | 
				
			||||||
where one needs to construct a s-expression based on various element of the
 | 
					 | 
				
			||||||
context such as function arguments.")
 | 
					 | 
				
			||||||
    (license license:asl2.0)))
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public ocaml-ppx-pipebang
 | 
					(define-public ocaml-ppx-pipebang
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue