[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH v2 12/25] gnu: Add ocaml-bin-prot.
From: |
zimoun |
Subject: |
[bug#53882] [PATCH v2 12/25] gnu: Add ocaml-bin-prot. |
Date: |
Fri, 8 Apr 2022 15:22:52 +0200 |
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/ocaml.scm (ocaml-bin-prot): New variable.
(ocaml4.07-bin-prot): Inherit from it.
---
gnu/packages/ocaml.scm | 75 ++++++++++++++++++++++++++----------------
1 file changed, 47 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 67902f58b3..fbe07fbb21 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5580,33 +5580,30 @@ (define-public ocaml4.07-ppx-custom-printf
"11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))
(properties `((upstream-name . "ppx_custom_printf"))))))
-(define-public ocaml4.07-bin-prot
+(define-public ocaml-bin-prot
(package
- (name "ocaml4.07-bin-prot")
- (version "0.11.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
- (version-major+minor version)
- "/files/bin_prot-v" version ".tar.gz"))
- (sha256
- (base32
- "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
+ (name "ocaml-bin-prot")
+ (version "0.14.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/bin_prot")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qyqbfp4zdc2jb87370cdgancisqffhf9x60zgh2m31kqik8annr"))))
(build-system dune-build-system)
- (inputs
- `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
- ("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07
ocaml-ppx-custom-printf))
- ("ocaml-ppx-fields-conv" ,(package-with-ocaml4.07
ocaml-ppx-fields-conv))
- ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
- ("ocaml-ppx-variants-conv" ,(package-with-ocaml4.07
ocaml-ppx-variants-conv))
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
- (arguments
- `(#:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
- (properties `((upstream-name . "bin_prot")))
+ (propagated-inputs
+ (list ocaml-base
+ ocaml-ppx-compare
+ ocaml-ppx-custom-printf
+ ocaml-ppx-fields-conv
+ ocaml-ppx-optcomp
+ ocaml-ppx-sexp-conv
+ ocaml-ppx-variants-conv))
+ (properties `((upstream-name . "bin_prot")
+ (ocaml4.07-variant . ,(delay ocaml4.07-bin-prot))))
(home-page "https://github.com/janestreet/bin_prot")
(synopsis "Binary protocol generator")
(description "This library contains functionality for reading and writing
@@ -5615,9 +5612,31 @@ (define-public ocaml4.07-bin-prot
structured values at speeds sufficient to saturate a gigabit connection. The
protocol is also heavily optimized for size, making it ideal for long-term
storage of large amounts of data.")
- (license (list
- license:asl2.0
- license:bsd-3))))
+ (license license:expat)))
+
+(define-public ocaml4.07-bin-prot
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-bin-prot)
+ (version "0.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
+ (version-major+minor version)
+ "/files/bin_prot-v" version ".tar.gz"))
+ (sha256
+ (base32
+ "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
+ (propagated-inputs (list ocaml-base
+ ocaml-ppx-compare
+ ocaml-ppx-custom-printf
+ ocaml-ppx-fields-conv
+ ocaml-ppx-variants-conv
+ ocaml-migrate-parsetree))
+ (properties '())
+ (license (list
+ license:asl2.0
+ license:bsd-3)))))
(define-public ocaml-octavius
(package
--
2.34.0
- [bug#53882] [PATCH v2 06/25] gnu: Add ocaml-ppx-typerep-conv., (continued)
- [bug#53882] [PATCH v2 06/25] gnu: Add ocaml-ppx-typerep-conv., zimoun, 2022/04/08
- [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 <=
- [bug#53882] [PATCH v2 22/25] gnu: Add ocaml-core-kernel., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 24/25] gnu: ocaml-jane-street-headers: Add variant., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 17/25] gnu: Add ocaml-splittable-random., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 21/25] gnu: Add ocaml-base-bigstring., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 19/25] gnu: Add ocaml-ppx-fail., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 18/25] gnu: Add ocaml-base-quickcheck., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 13/25] gnu: Add ocaml-ppx-bin-prot., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 04/25] gnu: Add ocaml-spawn., zimoun, 2022/04/08