guix-commits
[Top][All Lists]
Advanced

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

06/10: gnu: Add ocaml-result.


From: David Craven
Subject: 06/10: gnu: Add ocaml-result.
Date: Wed, 4 Jan 2017 16:41:24 +0000 (UTC)

dvc pushed a commit to branch master
in repository guix.

commit 704b990c36b29bca681b1832e30c0901512b4f9a
Author: Julien Lepiller <address@hidden>
Date:   Fri Dec 30 11:36:41 2016 +0100

    gnu: Add ocaml-result.
    
    * gnu/packages/ocaml.scm (ocaml-result): New variable.
    
    Signed-off-by: David Craven <address@hidden>
---
 gnu/packages/ocaml.scm |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index b999ee9..9eff014 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1069,3 +1069,27 @@ and generate binary formats, files and protocols.  
Bitstring handling is added
 as primitives to the language, making it exceptionally simple to use and very
 powerful.")
     (license license:isc)))
+
+(define-public ocaml-result
+  (package
+    (name "ocaml-result")
+    (version "1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/janestreet/result";
+                                  "/archive/" version ".tar.gz"))
+              (sha256
+               (base32
+                "1pgpfsgvhxnh0i37fkvp9j8nadns9hz9iqgabj4dr519j2gr1xvw"))))
+    (build-system ocaml-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/janestreet/result";)
+    (synopsis "Compatibility Result module")
+    (description "Uses the new result type defined in OCaml >= 4.03 while
+staying compatible with older version of OCaml should use the Result module
+defined in this library.")
+    (license license:bsd-3)))



reply via email to

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