mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-10 05:31:21 +01:00
gnu: Add ocaml-ppx-sexp-value.
* gnu/packages/ocaml.scm (ocaml-ppx-sexp-value): New variable. (ocaml4.07-ppx-sexp-value): Inherit from it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
755122b3af
commit
166168c208
1 changed files with 40 additions and 25 deletions
|
@ -5856,36 +5856,51 @@ many values).")
|
||||||
(properties '())
|
(properties '())
|
||||||
(license license:asl2.0))))
|
(license license:asl2.0))))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-sexp-value
|
(define-public ocaml-ppx-sexp-value
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-ppx-sexp-value")
|
(name "ocaml-ppx-sexp-value")
|
||||||
(version "0.11.0")
|
(version "0.14.0")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
|
(method git-fetch)
|
||||||
(version-major+minor version)
|
(uri (git-reference
|
||||||
"/files/ppx_sexp_value-v" version ".tar.gz"))
|
(url "https://github.com/janestreet/ppx_sexp_value")
|
||||||
(sha256
|
(commit (string-append "v" version))))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
|
(sha256
|
||||||
|
(base32 "1d1c92pyypqkd9473d59j0sfppxvcxggbc62w8bkqnbxrdmvirn9"))))
|
||||||
(build-system dune-build-system)
|
(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 ocaml-ppx-sexp-conv ocaml-ppxlib))
|
||||||
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
(properties `((upstream-name . "ppx_sexp_value")
|
||||||
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
(ocaml4.07-variant . ,(delay ocaml4.07-ppx-sexp-value))))
|
||||||
("ocaml-migrate-parsetree"
|
|
||||||
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
|
|
||||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
|
||||||
(properties `((upstream-name . "ppx_sexp_value")))
|
|
||||||
(home-page "https://github.com/janestreet/ppx_sexp_value")
|
(home-page "https://github.com/janestreet/ppx_sexp_value")
|
||||||
(synopsis "Simplify building s-expressions from ocaml values")
|
(synopsis "Simplify building s-expressions from ocaml values")
|
||||||
(description "A ppx rewriter that simplifies building s-expressions from
|
(description "@samp{ppx-sexp-value} is a ppx rewriter that simplifies
|
||||||
ocaml values.")
|
building s-expressions from ocaml values.")
|
||||||
(license license:asl2.0)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-ppx-sexp-value
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-ppx-sexp-value)
|
||||||
|
(version "0.11.0")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
|
||||||
|
(version-major+minor version)
|
||||||
|
"/files/ppx_sexp_value-v" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ocaml-base
|
||||||
|
ocaml-ppx-here
|
||||||
|
ocaml-ppx-sexp-conv
|
||||||
|
ocaml-migrate-parsetree
|
||||||
|
ocaml-ppxlib))
|
||||||
|
(properties '())
|
||||||
|
(license license:asl2.0))))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-sexp-message
|
(define-public ocaml4.07-ppx-sexp-message
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Reference in a new issue