[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] gnu: Add ocaml-ppx-deriving.
From: |
Julien Lepiller |
Subject: |
[PATCH 06/10] gnu: Add ocaml-ppx-deriving. |
Date: |
Tue, 31 Jan 2017 21:58:11 +0100 |
* gnu/packages/ocaml.scm (ocaml-ppx-deriving): New variable.
---
gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8e525ff10..bcf9d0c9a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2147,3 +2147,42 @@ programs. It allows the definition of simple macros and
file inclusion. Cpp oi
@item simple to install and to maintain.
@end enumerate")
(license license:bsd-3)))
+
+;; this package is not reproducible. This is related to temporary filenames
+;; such as findlib_initxxxxx where xxxxx is random.
+(define-public ocaml-ppx-deriving
+ (package
+ (name "ocaml-ppx-deriving")
+ (version "4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/whitequark/ppx_deriving//archive/v"
+ version ".tar.gz"))
+ (sha256 (base32
+ "1fr16g121j6zinwcprzlhx2py4271n9jzs2m9hq2f3qli2b1p0vl"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system ocaml-build-system)
+ (native-inputs
+ `(("js-build-tools" ,ocaml-js-build-tools)
+ ("cppo" ,ocaml-cppo)
+ ("ounit" ,ocaml-ounit)
+ ("opam" ,opam)))
+ (propagated-inputs
+ `(("result" ,ocaml-result)
+ ("ppx-tools" ,ocaml-ppx-tools)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'install 'fix-environment
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; the installation procedures looks for the installed module
+ (setenv "OCAMLPATH"
+ (string-append (getenv "OCAMLPATH") ":"
+ (getenv "OCAMLFIND_DESTDIR"))))))))
+ (home-page "https://github.com/whitequark/ppx_deriving/")
+ (synopsis "Type-driven code generation for OCaml >=4.02")
+ (description "Ppx_deriving provides common infrastructure for generating
+code based on type definitions, and a set of useful plugins for common tasks.")
+ (license license:expat)))
--
2.11.0
- Re: [PATCH 09/10] gnu: Add ocaml-js-build-tools., (continued)
- Re: [PATCH 00/10] ocaml patches, Marius Bakke, 2017/01/18
- [PATCH 00/10] ocaml patches, Julien Lepiller, 2017/01/31
- [PATCH 02/10] gnu: Add ocaml-ppx-core., Julien Lepiller, 2017/01/31
- [PATCH 01/10] gnu: Add ocaml-fieldslib., Julien Lepiller, 2017/01/31
- [PATCH 03/10] gnu: Add ocaml-ppx-optcomp., Julien Lepiller, 2017/01/31
- [PATCH 04/10] gnu: Add ocaml-ppx-driver., Julien Lepiller, 2017/01/31
- [PATCH 05/10] gnu: Add ocaml-cppo., Julien Lepiller, 2017/01/31
- [PATCH 06/10] gnu: Add ocaml-ppx-deriving.,
Julien Lepiller <=
- [PATCH 07/10] gnu: Add ocaml-ppx-type-conv., Julien Lepiller, 2017/01/31
- [PATCH 08/10] gnu: Add ocaml-ppx-inline-test., Julien Lepiller, 2017/01/31
- [PATCH 09/10] gnu: Add ocaml-ppx-bench., Julien Lepiller, 2017/01/31
- [PATCH 10/10] gnu: Add ocaml-ppx-compare., Julien Lepiller, 2017/01/31