[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: gnu: Add coq-flocq.
From: |
julien lepiller |
Subject: |
01/05: gnu: Add coq-flocq. |
Date: |
Sat, 29 Jul 2017 09:20:15 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit d163d97d92f3abea98f4b36d55ac3bb9db23d423
Author: Julien Lepiller <address@hidden>
Date: Thu Jun 8 18:25:32 2017 +0200
gnu: Add coq-flocq.
* gnu/packages/ocaml.scm (coq-flocq): New variable.
---
gnu/packages/ocaml.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 6861901..82da0bf 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3153,3 +3153,48 @@ writing to these structures, and they are accessed via
the Bigarray module.")
(synopsis "Minimal library providing hexadecimal converters")
(description "Hex is a minimal library providing hexadecimal converters.")
(license license:isc)))
+
+(define-public coq-flocq
+ (package
+ (name "coq-flocq")
+ (version "2.5.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://gforge.inria.fr/frs/download.php/file"
+ "/36199/flocq-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0h5mlasirfzc0wwn2isg4kahk384n73145akkpinrxq5jsn5d22h"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("ocaml" ,ocaml)
+ ("which" ,which)
+ ("coq" ,coq)))
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--libdir=" (assoc-ref %outputs "out")
+ "/lib/coq/user-contrib/Flocq"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-remake
+ (lambda _
+ (substitute* "remake.cpp"
+ (("/bin/sh") (which "sh")))))
+ (replace 'build
+ (lambda _
+ (zero? (system* "./remake"))))
+ (replace 'check
+ (lambda _
+ (zero? (system* "./remake" "check"))))
+ ;; TODO: requires coq-gappa and coq-interval.
+ ;(zero? (system* "./remake" "check-more"))))
+ (replace 'install
+ (lambda _
+ (zero? (system* "./remake" "install")))))))
+ (home-page "http://flocq.gforge.inria.fr/")
+ (synopsis "Floating-point formalization for the Coq system")
+ (description "Flocq (Floats for Coq) is a floating-point formalization for
+the Coq system. It provides a comprehensive library of theorems on a
multi-radix
+multi-precision arithmetic. It also supports efficient numerical computations
+inside Coq.")
+ (license license:lgpl3+)))