[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH v2 06/25] gnu: Add ocaml-ppx-typerep-conv.
From: |
zimoun |
Subject: |
[bug#53882] [PATCH v2 06/25] gnu: Add ocaml-ppx-typerep-conv. |
Date: |
Fri, 8 Apr 2022 15:22:46 +0200 |
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/ocaml.scm (ocaml-ppx-typerep-conv): New variable.
(ocaml4.07-ppx-typerep-conv): Inherit from it.
---
gnu/packages/ocaml.scm | 60 +++++++++++++++++++++++++-----------------
1 file changed, 36 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8c464147f5..8ec5953730 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6203,37 +6203,49 @@ (define-public ocaml4.07-ppx-js-style
"0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))
(properties `((upstream-name . "ppx_js_style"))))))
-(define-public ocaml4.07-ppx-typerep-conv
+(define-public ocaml-ppx-typerep-conv
(package
- (name "ocaml4.07-ppx-typerep-conv")
- (version "0.11.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/janestreet/ppx_typerep_conv")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
+ (name "ocaml-ppx-typerep-conv")
+ (version "0.14.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_typerep_conv/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0yk9vkpnwr8labgfncqdi4rfkj88d8mb3cr8m4gdqpi3f2r27hf0"))))
(build-system dune-build-system)
(arguments
- `(#:test-target "."
- #:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
- (propagated-inputs
- `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-typerep" ,ocaml4.07-typerep)
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_typerep_conv")))
+ `(#:test-target "."))
+ (propagated-inputs (list ocaml-base ocaml-typerep ocaml-ppxlib))
+ (properties `((upstream-name . "ppx_typerep_conv")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-typerep-conv))))
(home-page "https://github.com/janestreet/ppx_typerep_conv")
(synopsis "Generation of runtime types from type declarations")
(description "This package can automatically generate runtime types
from type definitions.")
- (license license:asl2.0)))
+ (license license:expat)))
+
+(define-public ocaml4.07-ppx-typerep-conv
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-ppx-typerep-conv)
+ (version "0.11.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_typerep_conv")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "ocaml4.07-ppx-typerep-conv"
version))
+ (sha256
+ (base32
+ "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
+ (properties '())
+ (propagated-inputs
+ (list ocaml-base ocaml-typerep ocaml-migrate-parsetree ocaml-ppxlib))
+ (license license:asl2.0))))
(define-public ocaml-ppx-base
(package
--
2.34.0
- [bug#53882] [PATCH v2 01/25] gnu: ocaml-odoc: Update to 2.2.0-alpha., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 03/25] import: opam: Factor out source import., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 05/25] gnu: Add ocaml-typerep., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 10/25] gnu: Add ocaml-ppx-module-timer., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 02/25] import: opam: Accept tabulations., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 08/25] gnu: Add ocaml-ppx-stable., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 06/25] gnu: Add ocaml-ppx-typerep-conv.,
zimoun <=
- [bug#53882] [PATCH v2 14/25] gnu: Add ocaml-ppx-bench., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 16/25] gnu: Add ocaml-ppx-sexp-message., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 25/25] gnu: Add ocaml-core., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 20/25] gnu: Add ocaml-ppx-jane., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 15/25] gnu: Add ocaml-ppx-sexp-value., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 23/25] gnu: Add ocaml-timezone., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 07/25] gnu: Add ocaml-ppx-string., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 09/25] gnu: Add ocaml-ppx-pipebang., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 11/25] gnu: Add ocaml-ppx-fixed-literal., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 12/25] gnu: Add ocaml-bin-prot., zimoun, 2022/04/08