mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-05 10:20:14 +01:00
gnu: Add ocaml-ppx-bin-prot.
* gnu/packages/ocaml.scm (ocaml-ppx-bin-prot): New variable. (ocaml4.07-ppx-bin-prot): Inherit from it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
76a416bf04
commit
e5deab0a7a
1 changed files with 40 additions and 24 deletions
|
@ -6423,39 +6423,55 @@ verification tool.")
|
||||||
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
("ocaml-ppxlib" ,ocaml-ppxlib)))
|
||||||
(properties `((upstream-name . "ppx_base"))))))
|
(properties `((upstream-name . "ppx_base"))))))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-bin-prot
|
(define-public ocaml-ppx-bin-prot
|
||||||
(package
|
(package
|
||||||
(name "ocaml4.07-ppx-bin-prot")
|
(name "ocaml-ppx-bin-prot")
|
||||||
(version "0.11.1")
|
(version "0.14.0")
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/janestreet/ppx_bin_prot")
|
(uri (git-reference
|
||||||
(commit (string-append "v" version))))
|
(url "https://github.com/janestreet/ppx_bin_prot")
|
||||||
(file-name (git-file-name name version))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
|
(base32 "1qryjxhyz3kn5jz5wm62j59lhjhd1mp7nbsj0np9qnbpapnnr1zg"))))
|
||||||
(build-system dune-build-system)
|
(build-system dune-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; Cyclic dependency with ocaml-ppx-jane
|
;; Cyclic dependency with ocaml-ppx-jane
|
||||||
`(#:tests? #f
|
`(#:tests? #f))
|
||||||
#:ocaml ,ocaml-4.07
|
|
||||||
#:findlib ,ocaml4.07-findlib
|
|
||||||
#:dune ,ocaml4.07-dune))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
|
(list ocaml-base ocaml-bin-prot ocaml-ppx-here ocaml-ppxlib))
|
||||||
("ocaml-bin-prot" ,ocaml4.07-bin-prot)
|
(properties `((upstream-name . "ppx_bin_prot")
|
||||||
("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
|
(ocaml4.07-variant . ,(delay ocaml4.07-ppx-bin-prot))))
|
||||||
("ocaml-migrate-parsetree"
|
|
||||||
,(package-with-ocaml4.07 ocaml-migrate-parsetree))
|
|
||||||
("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
|
|
||||||
(properties `((upstream-name . "ppx_bin_prot")))
|
|
||||||
(home-page "https://github.com/janestreet/ppx_bin_prot")
|
(home-page "https://github.com/janestreet/ppx_bin_prot")
|
||||||
(synopsis "Generation of bin_prot readers and writers from types")
|
(synopsis "Generation of bin_prot readers and writers from types")
|
||||||
(description "Generation of binary serialization and deserialization
|
(description "Generation of binary serialization and deserialization
|
||||||
functions from type definitions.")
|
functions from type definitions.")
|
||||||
(license license:asl2.0)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ocaml4.07-ppx-bin-prot
|
||||||
|
(package-with-ocaml4.07
|
||||||
|
(package
|
||||||
|
(inherit ocaml-ppx-bin-prot)
|
||||||
|
(version "0.11.1")
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/janestreet/ppx_bin_prot")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name "ocaml4.07-ppx-bin-prot" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ocaml-base
|
||||||
|
ocaml-bin-prot
|
||||||
|
ocaml-ppx-here
|
||||||
|
ocaml-migrate-parsetree
|
||||||
|
ocaml-ppxlib))
|
||||||
|
(properties '())
|
||||||
|
(license license:asl2.0))))
|
||||||
|
|
||||||
(define-public ocaml4.07-ppx-jane
|
(define-public ocaml4.07-ppx-jane
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Reference in a new issue