gnu: Add ocaml-bin-prot.
* gnu/packages/ocaml.scm (ocaml-bin-prot): New variable. (ocaml4.07-bin-prot): Inherit from it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
6f8ae2b2b9
commit
76a416bf04
1 changed files with 47 additions and 28 deletions
|
@ -5580,9 +5580,44 @@ string conversion.")
|
||||||
"11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))
|
"11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))
|
||||||
(properties `((upstream-name . "ppx_custom_printf"))))))
|
(properties `((upstream-name . "ppx_custom_printf"))))))
|
||||||
|
|
||||||
(define-public ocaml4.07-bin-prot
|
(define-public ocaml-bin-prot
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-bin-prot")
|
(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)
|
||||||
|
(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
|
||||||
|
OCaml-values in a type-safe binary protocol. It is extremely efficient,
|
||||||
|
typically supporting type-safe marshalling and unmarshalling of even highly
|
||||||
|
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 license:expat)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-bin-prot
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-bin-prot)
|
||||||
(version "0.11.0")
|
(version "0.11.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -5592,32 +5627,16 @@ string conversion.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
|
"1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
|
||||||
(build-system dune-build-system)
|
(propagated-inputs (list ocaml-base
|
||||||
(inputs
|
ocaml-ppx-compare
|
||||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
ocaml-ppx-custom-printf
|
||||||
("ocaml-ppx-compare" ,(package-with-ocaml4.07 ocaml-ppx-compare))
|
ocaml-ppx-fields-conv
|
||||||
("ocaml-ppx-custom-printf" ,(package-with-ocaml4.07 ocaml-ppx-custom-printf))
|
ocaml-ppx-variants-conv
|
||||||
("ocaml-ppx-fields-conv" ,(package-with-ocaml4.07 ocaml-ppx-fields-conv))
|
ocaml-migrate-parsetree))
|
||||||
("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv))
|
(properties '())
|
||||||
("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")))
|
|
||||||
(home-page "https://github.com/janestreet/bin_prot")
|
|
||||||
(synopsis "Binary protocol generator")
|
|
||||||
(description "This library contains functionality for reading and writing
|
|
||||||
OCaml-values in a type-safe binary protocol. It is extremely efficient,
|
|
||||||
typically supporting type-safe marshalling and unmarshalling of even highly
|
|
||||||
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 (list
|
||||||
license:asl2.0
|
license:asl2.0
|
||||||
license:bsd-3))))
|
license:bsd-3)))))
|
||||||
|
|
||||||
(define-public ocaml-octavius
|
(define-public ocaml-octavius
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue