guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 91/96] gnu: Add ocaml-optcomp


From: Julien Lepiller
Subject: [PATCH 91/96] gnu: Add ocaml-optcomp
Date: Tue, 3 Jan 2017 20:12:12 +0100

* gnu/packages/ocaml.scm (ocaml-optcomp): New variable.
---
 gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 40e285820..ed24aa526 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2775,3 +2775,28 @@ OCaml standard library")
     (description "High-level and functional interface to the Format module of
 the OCaml standard library.")
     (license license:bsd-3)))
+
+(define-public ocaml-optcomp
+  (package
+    (name "ocaml-optcomp")
+    (version "1.6")
+    (home-page "https://github.com/diml/optcomp";)
+    (source (origin
+              (method url-fetch)
+              (uri (string-append home-page "/archive/" version ".tar.gz"))
+              (sha256
+                (base32
+                  "0hhhb2gisah1h22zlg5iszbgqxdd7x85cwd57bd4mfkx9l7dh8jh"))))
+    (build-system ocaml-build-system)
+    (arguments
+     `(#:use-make? #t
+          #:make-flags
+       (list (string-append "BUILDFLAGS=\""
+                            "-cflags -I,"
+                            (assoc-ref %build-inputs "camlp4")
+                            "/lib/ocaml/site-lib/camlp4/Camlp4Parsers\""))))
+    (native-inputs `(("camlp4" ,camlp4)))
+    (propagated-inputs `(("camlp4" ,camlp4)))
+    (synopsis "Optional compilation with cpp-like directives")
+    (description "Optional compilation with cpp-like directives.")
+    (license license:bsd-3)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]