[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH 04/24] gnu: Add ocaml-typerep.
From: |
Julien Lepiller |
Subject: |
[bug#53882] [PATCH 04/24] gnu: Add ocaml-typerep. |
Date: |
Tue, 8 Feb 2022 21:14:30 +0100 |
* gnu/packages/ocaml.scm (ocaml-typerep): New variable.
(ocaml4.07-typerep): Inherit from it.
---
gnu/packages/ocaml.scm | 50 +++++++++++++++++++++++++++---------------
1 file changed, 32 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ad2e5fc158..d88fea9804 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5788,29 +5788,43 @@ (define-public ocaml4.07-ppx-here
"0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))
(properties `((upstream-name . "ppx_here"))))))
-(define-public ocaml4.07-typerep
+(define-public ocaml-typerep
(package
- (name "ocaml4.07-typerep")
- (version "0.11.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
- (version-major+minor version)
- "/files/typerep-v" version ".tar.gz"))
- (sha256
- (base32
- "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
+ (name "ocaml-typerep")
+ (version "0.14.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/typerep")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0wc7h853ka3s3lxxgm61ypidl0lzgc9abdkil6f72anl0c417y90"))))
(build-system dune-build-system)
- (arguments
- `(#:tests? #f
- #:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
- (propagated-inputs `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))))
+ (arguments `(#:tests? #f)); no tests
+ (propagated-inputs (list ocaml-base))
+ (properties `((ocaml4.07-variant . ,(delay ocaml4.07-typerep))))
(home-page "https://github.com/janestreet/typerep")
(synopsis "Typerep is a library for runtime types")
(description "Typerep is a library for runtime types.")
- (license license:asl2.0)))
+ (license license:expat)))
+
+(define-public ocaml4.07-typerep
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-typerep)
+ (version "0.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
+ (version-major+minor version)
+ "/files/typerep-v" version ".tar.gz"))
+ (sha256
+ (base32
+ "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
+ (properties '())
+ (license license:asl2.0))))
(define-public ocaml4.07-ppx-sexp-value
(package
--
2.34.0
- [bug#53882] [PATCH 19/24] gnu: Add ocmal-ppx-jane., (continued)
- [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, 2022/02/08
- [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 <=
- [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
- [bug#53882] [PATCH 21/24] gnu: Add ocaml-core-kernel., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 20/24] gnu: Add ocaml-base-bigstring., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 01/24] import: opam: Accept tabulations., Maxime Devos, 2022/02/23