[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53882] [PATCH 08/24] gnu: Add ocmal-ppx-pipebang.
From: |
Julien Lepiller |
Subject: |
[bug#53882] [PATCH 08/24] gnu: Add ocmal-ppx-pipebang. |
Date: |
Tue, 8 Feb 2022 21:14:34 +0100 |
* gnu/packages/ocaml.scm (ocaml-ppx-pipebang): New variable.
(ocaml4.07-ppx-pipebang): Inherit from it.
---
gnu/packages/ocaml.scm | 57 +++++++++++++++++++++++++-----------------
1 file changed, 34 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 1c87a35886..c2ee95a263 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5890,35 +5890,46 @@ (define-public ocaml4.07-ppx-sexp-message
context such as function arguments.")
(license license:asl2.0)))
-(define-public ocaml4.07-ppx-pipebang
+(define-public ocaml-ppx-pipebang
(package
- (name "ocaml4.07-ppx-pipebang")
- (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_pipebang-v" version ".tar.gz"))
- (sha256
- (base32
- "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
+ (name "ocaml-ppx-pipebang")
+ (version "0.14.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_pipebang")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0450b3p2rpnnn5yyvbkcd3c33jr2z0dp8blwxddaj2lv7nzl5dzf"))))
(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-migrate-parsetree"
- ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
- ("ocaml-ppxlib" ,(package-with-ocaml4.07 ocaml-ppxlib))))
- (properties `((upstream-name . "ppx_pipebang")))
+ (arguments `(#:tests? #f)); no tests
+ (propagated-inputs (list ocaml-ppxlib))
+ (properties `((upstream-name . "ppx_pipebang")
+ (ocaml4.07-variant . ,(delay ocaml4.07-ppx-pipebang))))
(home-page "https://github.com/janestreet/ppx_pipebang")
(synopsis "Inline reverse application operators `|>` and `|!`")
(description "A ppx rewriter that inlines reverse application operators
@code{|>} and @code{|!}.")
- (license license:asl2.0)))
+ (license license:expat)))
+
+(define-public ocaml4.07-ppx-pipebang
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-ppx-pipebang)
+ (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_pipebang-v" version ".tar.gz"))
+ (sha256
+ (base32
+ "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
+ (propagated-inputs (list ocaml-migrate-parsetree ocaml-ppxlib))
+ (properties '())
+ (license license:asl2.0))))
(define-public ocaml-ppx-optional
(package
--
2.34.0
- [bug#53882] [PATCH 23/24] gnu: ocaml-jane-street-headers: Add variant., (continued)
- [bug#53882] [PATCH 23/24] gnu: ocaml-jane-street-headers: Add variant., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 12/24] gnu: Add ocaml-ppx-bin-prot., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 14/24] gnu: Add ocaml-ppx-sexp-value., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 17/24] gnu: Add ocaml-base-quickcheck., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 13/24] gnu: Add ocaml-ppx-bench., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 18/24] gnu: Add ocaml-ppx-fail., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 04/24] gnu: Add ocaml-typerep., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 02/24] import: opam: Factor out source import., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 10/24] gnu: Add ocaml-ppx-fixed-literal., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 07/24] gnu: Add ocaml-ppx-stable., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 08/24] gnu: Add ocmal-ppx-pipebang.,
Julien Lepiller <=
- [bug#53882] [PATCH 15/24] gnu: Add ocaml-ppx-sexp-message., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 16/24] gnu: Add ocaml-splittable-random., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 21/24] gnu: Add ocaml-core-kernel., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 20/24] gnu: Add ocaml-base-bigstring., Julien Lepiller, 2022/02/08
- [bug#53882] [PATCH 01/24] import: opam: Accept tabulations., Maxime Devos, 2022/02/23