[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: Add ocaml-ppxlib.
From: |
guix-commits |
Subject: |
08/08: gnu: Add ocaml-ppxlib. |
Date: |
Wed, 16 Jan 2019 14:09:10 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 4d390cad2510797a68f473db347699e748c92e42
Author: Gabriel Hondet <address@hidden>
Date: Fri Jan 4 10:09:12 2019 +0100
gnu: Add ocaml-ppxlib.
* gnu/packages/ocaml.scm (ocaml-ppxlib): New variable.
Signed-off-by: Julien Lepiller <address@hidden>
---
gnu/packages/ocaml.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e1ab867..deba67c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5079,3 +5079,65 @@ a more consistent API.")
ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
as part of the same ocaml-migrate-parsetree driver.")
(license license:bsd-3)))
+
+(define-public ocaml-ppxlib
+ (package
+ (name "ocaml-ppxlib")
+ (version "0.4.0")
+ (home-page "https://github.com/ocaml-ppx/ppxlib")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1nr4igf5m4prvigvv470dnhfdhdw0p6hz6zw8gnm5bzcv7s2lg5l"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-compiler-libs" ,ocaml-compiler-libs)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
+ ("ocaml-stdio" ,ocaml-stdio)
+ ("ocaml-result" ,ocaml-result)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (native-inputs
+ `(("ocaml-findlib" ,ocaml-findlib)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-topfind
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; add the line #directory ".." at the top of each file
+ ;; using #use "topfind";; to be able to find topfind
+ (let* ((findlib-path (assoc-ref inputs "ocaml-findlib"))
+ (findlib-libdir
+ (string-append findlib-path "/lib/ocaml/site-lib")))
+ (substitute* '("test/base/test.ml"
+ "test/deriving/test.ml"
+ "test/driver/attributes/test.ml"
+ "test/driver/non-compressible-suffix/test.ml"
+ "test/driver/transformations/test.ml")
+ (("#use \"topfind\";;" all)
+ (string-append "#directory \"" findlib-libdir "\"\n"
+ all))))
+ #t)))))
+ (synopsis
+ "Base library and tools for ppx rewriters")
+ (description
+ "A comprehensive toolbox for ppx development. It features:
address@hidden
address@hidden an OCaml AST / parser / pretty-printer snapshot, to create a
full frontend
+independent of the version of OCaml;
address@hidden a library for library for ppx rewriters in general, and
type-driven code
+generators in particular;
address@hidden
+a feature-full driver for OCaml AST transformers;
address@hidden a quotation mechanism allowing to write values representing the
+OCaml AST in the OCaml syntax;
address@hidden a generator of open recursion classes from type definitions.
address@hidden itemize")
+ (license license:expat)))
- branch master updated (5f2122f -> 4d390ca), guix-commits, 2019/01/16
- 01/08: gnu: Add ocaml-sexplib0., guix-commits, 2019/01/16
- 02/08: gnu: Add ocaml-parsexp., guix-commits, 2019/01/16
- 03/08: gnu: Add ocaml-sexplib., guix-commits, 2019/01/16
- 07/08: gnu: Add ocaml-ppx-derivers., guix-commits, 2019/01/16
- 08/08: gnu: Add ocaml-ppxlib.,
guix-commits <=
- 04/08: gnu: Add ocaml-base., guix-commits, 2019/01/16
- 06/08: gnu: Add ocaml-migrate-parsetree., guix-commits, 2019/01/16
- 05/08: gnu: Add ocaml-compiler-libs., guix-commits, 2019/01/16