[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 53/96] gnu: Add ocaml-ppx-deriving
From: |
Julien Lepiller |
Subject: |
[PATCH 53/96] gnu: Add ocaml-ppx-deriving |
Date: |
Tue, 3 Jan 2017 20:11:34 +0100 |
* gnu/packages/ocaml.scm (ocaml-ppx-deriving): New variable.
---
gnu/packages/ocaml.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ae7218a92..cb5f20f6e 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1957,3 +1957,37 @@ programs. It allows the definition of simple macros and
file inclusion. Cppo i
- reasonably fast
- simple to install and to maintain.")
(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")
+ (home-page "https://github.com/whitequark/ppx_deriving/")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append home-page "/archive/v" version ".tar.gz"))
+ (sha256 (base32
+ "1fr16g121j6zinwcprzlhx2py4271n9jzs2m9hq2f3qli2b1p0vl"))))
+ (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"))))))))
+ (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
- [PATCH 44/96] gnu: Add ocaml-fileutils, (continued)
- [PATCH 44/96] gnu: Add ocaml-fileutils, Julien Lepiller, 2017/01/03
- [PATCH 45/96] gnu: Add ocaml-oasis, Julien Lepiller, 2017/01/03
- [PATCH 46/96] gnu: Add ocaml-js-build-tools, Julien Lepiller, 2017/01/03
- [PATCH 47/96] gnu: Add ocaml-bin-prot, Julien Lepiller, 2017/01/03
- [PATCH 48/96] gnu: Add ocaml-fieldslib, Julien Lepiller, 2017/01/03
- [PATCH 49/96] gnu: Add ocaml-ppx-core, Julien Lepiller, 2017/01/03
- [PATCH 50/96] gnu: Add ocaml-ppx-optcomp, Julien Lepiller, 2017/01/03
- [PATCH 51/96] gnu: Add ocaml-ppx-driver, Julien Lepiller, 2017/01/03
- [PATCH 52/96] gnu: Add ocaml-cppo, Julien Lepiller, 2017/01/03
- [PATCH 53/96] gnu: Add ocaml-ppx-deriving,
Julien Lepiller <=
- [PATCH 54/96] gnu: Add ocaml-ppx-type-conv, Julien Lepiller, 2017/01/03
- [PATCH 55/96] gnu: Add ocaml-ppx-inline-test, Julien Lepiller, 2017/01/03
- [PATCH 56/96] gnu: Add ocaml-ppx-bench, Julien Lepiller, 2017/01/03
- [PATCH 57/96] gnu: Add ocaml-ppx-compare, Julien Lepiller, 2017/01/03
- [PATCH 58/96] gnu: Add ocaml-sexplib, Julien Lepiller, 2017/01/03
- [PATCH 59/96] gnu: Add ocaml-typerep, Julien Lepiller, 2017/01/03
- [PATCH 60/96] gnu: Add ocaml-variantslib, Julien Lepiller, 2017/01/03
- [PATCH 61/96] gnu: Add ocaml-ppx-sexp-conv, Julien Lepiller, 2017/01/03
- [PATCH 62/96] gnu: Add ocaml-ppx-variants-conv, Julien Lepiller, 2017/01/03
- [PATCH 64/96] gnu: Add ocaml-ppx-assert, Julien Lepiller, 2017/01/03