[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/25: gnu: Add ocaml-ppx-bin-prot.
From: |
guix-commits |
Subject: |
13/25: gnu: Add ocaml-ppx-bin-prot. |
Date: |
Mon, 11 Apr 2022 06:18:52 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e5deab0a7af5dc692e558afbce977495a84d9c27
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Fri Apr 8 15:22:53 2022 +0200
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>
---
gnu/packages/ocaml.scm | 64 +++++++++++++++++++++++++++++++-------------------
1 file changed, 40 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index fbe07fbb21..14e945df56 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6423,39 +6423,55 @@ verification tool.")
("ocaml-ppxlib" ,ocaml-ppxlib)))
(properties `((upstream-name . "ppx_base"))))))
-(define-public ocaml4.07-ppx-bin-prot
+(define-public ocaml-ppx-bin-prot
(package
- (name "ocaml4.07-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 name version))
- (sha256
- (base32
- "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
+ (name "ocaml-ppx-bin-prot")
+ (version "0.14.0")
+ (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 name version))
+ (sha256
+ (base32 "1qryjxhyz3kn5jz5wm62j59lhjhd1mp7nbsj0np9qnbpapnnr1zg"))))
(build-system dune-build-system)
(arguments
;; Cyclic dependency with ocaml-ppx-jane
- `(#:tests? #f
- #:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
+ `(#:tests? #f))
(propagated-inputs
- `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
- ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
- ("ocaml-ppx-here" ,(package-with-ocaml4.07 ocaml-ppx-here))
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_bin_prot")))
+ (list ocaml-base ocaml-bin-prot ocaml-ppx-here ocaml-ppxlib))
+ (properties `((upstream-name . "ppx_bin_prot")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-bin-prot))))
(home-page "https://github.com/janestreet/ppx_bin_prot")
(synopsis "Generation of bin_prot readers and writers from types")
(description "Generation of binary serialization and deserialization
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
(package
- 17/25: gnu: Add ocaml-splittable-random., (continued)
- 17/25: gnu: Add ocaml-splittable-random., guix-commits, 2022/04/11
- 18/25: gnu: Add ocaml-base-quickcheck., guix-commits, 2022/04/11
- 11/25: gnu: Add ocaml-ppx-fixed-literal., guix-commits, 2022/04/11
- 12/25: gnu: Add ocaml-bin-prot., guix-commits, 2022/04/11
- 16/25: gnu: Add ocaml-ppx-sexp-message., guix-commits, 2022/04/11
- 19/25: gnu: Add ocaml-ppx-fail., guix-commits, 2022/04/11
- 21/25: gnu: Add ocaml-base-bigstring., guix-commits, 2022/04/11
- 08/25: gnu: Add ocaml-ppx-stable., guix-commits, 2022/04/11
- 20/25: gnu: Add ocaml-ppx-jane., guix-commits, 2022/04/11
- 24/25: gnu: ocaml-jane-street-headers: Add variant., guix-commits, 2022/04/11
- 13/25: gnu: Add ocaml-ppx-bin-prot.,
guix-commits <=
- 14/25: gnu: Add ocaml-ppx-bench., guix-commits, 2022/04/11
- 15/25: gnu: Add ocaml-ppx-sexp-value., guix-commits, 2022/04/11
- 22/25: gnu: Add ocaml-core-kernel., guix-commits, 2022/04/11
- 23/25: gnu: Add ocaml-timezone., guix-commits, 2022/04/11
- 25/25: gnu: Add ocaml-core., guix-commits, 2022/04/11