[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH v2 14/25] gnu: Add ocaml-ppx-bench.
From: |
zimoun |
Subject: |
[bug#53882] [PATCH v2 14/25] gnu: Add ocaml-ppx-bench. |
Date: |
Fri, 8 Apr 2022 15:22:54 +0200 |
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/ocaml.scm (ocaml-ppx-bench): New variable.
(ocaml4.07-ppx-bench): Inherit from it.
---
gnu/packages/ocaml.scm | 57 ++++++++++++++++++++++++++----------------
1 file changed, 35 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 14e945df56..baa269c8ce 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5744,35 +5744,48 @@ (define-public ocaml4.07-ppx-enumerate
"0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
(properties `((upstream-name . "ppx_enumerate"))))))
-(define-public ocaml4.07-ppx-bench
+(define-public ocaml-ppx-bench
(package
- (name "ocaml4.07-ppx-bench")
- (version "0.11.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
- (version-major+minor version)
- "/files/ppx_bench-v" version ".tar.gz"))
- (sha256
- (base32
- "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
+ (name "ocaml-ppx-bench")
+ (version "0.14.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_bench")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12r7jgqgpb4i4cry3rgyl2nmxcscs5w7mmk06diz7i49r27p96im"))))
(build-system dune-build-system)
(arguments
;; No tests
- `(#:tests? #f
- #:ocaml ,ocaml-4.07
- #:findlib ,ocaml4.07-findlib
- #:dune ,ocaml4.07-dune))
- (propagated-inputs
- `(("ocaml-ppx-inline-test" ,(package-with-ocaml4.07
ocaml-ppx-inline-test))
- ("ocaml-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_bench")))
+ `(#:tests? #f))
+ (propagated-inputs (list ocaml-ppx-inline-test ocaml-ppxlib))
+ (properties `((upstream-name . "ppx_bench")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-bench))))
(home-page "https://github.com/janestreet/ppx_bench")
(synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
(description "Syntax extension for writing in-line benchmarks in ocaml
code.")
- (license license:asl2.0)))
+ (license license:expat)))
+
+(define-public ocaml4.07-ppx-bench
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-ppx-bench)
+ (version "0.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
+ (version-major+minor version)
+ "/files/ppx_bench-v" version ".tar.gz"))
+ (sha256
+ (base32
+ "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
+ (propagated-inputs
+ (list ocaml-ppx-inline-test ocaml-migrate-parsetree ocaml-ppxlib))
+ (properties '())
+ (license license:asl2.0))))
(define-public ocaml-ppx-here
(package
--
2.34.0
- [bug#53882] [PATCH v2 01/25] gnu: ocaml-odoc: Update to 2.2.0-alpha., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 03/25] import: opam: Factor out source import., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 05/25] gnu: Add ocaml-typerep., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 10/25] gnu: Add ocaml-ppx-module-timer., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 02/25] import: opam: Accept tabulations., zimoun, 2022/04/08
- [bug#53882] [PATCH v2 08/25] gnu: Add ocaml-ppx-stable., zimoun, 2022/04/08
- [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 <=
- [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, 2022/04/08
- [bug#53882] [PATCH v2 22/25] gnu: Add ocaml-core-kernel., zimoun, 2022/04/08