[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH 14/24] gnu: Add ocaml-ppx-sexp-value.
From: |
Julien Lepiller |
Subject: |
[bug#53882] [PATCH 14/24] gnu: Add ocaml-ppx-sexp-value. |
Date: |
Tue, 8 Feb 2022 21:14:40 +0100 |
* gnu/packages/ocaml.scm (ocaml-ppx-sexp-value): New variable.
(ocaml4.07-ppx-sexp-value): Inherit from it.
---
gnu/packages/ocaml.scm | 65 ++++++++++++++++++++++++++----------------
1 file changed, 40 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8f8b4ca32f..bb29f3334d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5858,36 +5858,51 @@ (define-public ocaml4.07-typerep
(properties '())
(license license:asl2.0))))
-(define-public ocaml4.07-ppx-sexp-value
+(define-public ocaml-ppx-sexp-value
(package
- (name "ocaml4.07-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"))))
+ (name "ocaml-ppx-sexp-value")
+ (version "0.14.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_sexp_value")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1d1c92pyypqkd9473d59j0sfppxvcxggbc62w8bkqnbxrdmvirn9"))))
(build-system dune-build-system)
- (arguments
- `(#:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
(propagated-inputs
- `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
- ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_sexp_value")))
+ (list ocaml-base ocaml-ppx-here ocaml-ppx-sexp-conv ocaml-ppxlib))
+ (properties `((upstream-name . "ppx_sexp_value")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-sexp-value))))
(home-page "https://github.com/janestreet/ppx_sexp_value")
(synopsis "Simplify building s-expressions from ocaml values")
- (description "A ppx rewriter that simplifies building s-expressions from
-ocaml values.")
- (license license:asl2.0)))
+ (description "@samp{ppx-sexp-value} is a ppx rewriter that simplifies
+building s-expressions from ocaml values.")
+ (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
(package
--
2.34.0
- [bug#53882] [PATCH 05/24] gnu: Add ocaml-ppx-typerep-conv., (continued)
- [bug#53882] [PATCH 05/24] gnu: Add ocaml-ppx-typerep-conv., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 06/24] gnu: Add ocaml-ppx-string., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 09/24] gnu: Add ocaml-ppx-module-timer., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 11/24] gnu: Add ocaml-bin-prot., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 19/24] gnu: Add ocmal-ppx-jane., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 22/24] gnu: Add ocaml-timezone., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 24/24] gnu: Add ocaml-core., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 23/24] gnu: ocaml-jane-street-headers: Add variant., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 12/24] gnu: Add ocaml-ppx-bin-prot., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 14/24] gnu: Add ocaml-ppx-sexp-value.,
Julien Lepiller <=
- [bug#53882] [PATCH 17/24] gnu: Add ocaml-base-quickcheck., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 13/24] gnu: Add ocaml-ppx-bench., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 18/24] gnu: Add ocaml-ppx-fail., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 04/24] gnu: Add ocaml-typerep., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 02/24] import: opam: Factor out source import., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 10/24] gnu: Add ocaml-ppx-fixed-literal., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 07/24] gnu: Add ocaml-ppx-stable., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 08/24] gnu: Add ocmal-ppx-pipebang., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 15/24] gnu: Add ocaml-ppx-sexp-message., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 16/24] gnu: Add ocaml-splittable-random., Julien Lepiller, 2022/02/08