[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/25: gnu: Add ocaml-ppx-pipebang.
From: |
guix-commits |
Subject: |
09/25: gnu: Add ocaml-ppx-pipebang. |
Date: |
Mon, 11 Apr 2022 06:18:51 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5caa91e2191ce2229f8cb2337a37dd5a5282c92c
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Fri Apr 8 15:22:49 2022 +0200
gnu: Add ocaml-ppx-pipebang.
* gnu/packages/ocaml.scm (ocaml-ppx-pipebang): New variable.
(ocaml4.07-ppx-pipebang): Inherit from it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 d202d45474..c2924fc59d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5888,35 +5888,46 @@ where one needs to construct a s-expression based on
various element of the
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
- branch master updated (7da907f90e -> 24851bf6f9), guix-commits, 2022/04/11
- 04/25: gnu: Add ocaml-spawn., guix-commits, 2022/04/11
- 05/25: gnu: Add ocaml-typerep., guix-commits, 2022/04/11
- 06/25: gnu: Add ocaml-ppx-typerep-conv., guix-commits, 2022/04/11
- 07/25: gnu: Add ocaml-ppx-string., guix-commits, 2022/04/11
- 09/25: gnu: Add ocaml-ppx-pipebang.,
guix-commits <=
- 10/25: gnu: Add ocaml-ppx-module-timer., guix-commits, 2022/04/11
- 01/25: gnu: ocaml-odoc: Update to 2.2.0-alpha., guix-commits, 2022/04/11
- 03/25: import: opam: Factor out source import., guix-commits, 2022/04/11
- 02/25: import: opam: Accept tabulations., guix-commits, 2022/04/11
- 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