@@ -923,3 +923,69 @@ (define-public coq-mathcomp-bigenough
near tactics. The formalization is based on the Mathematical
Components library.")
(license license:cecill-b)))
+
+(define-public coq-mathcomp-analysis
+ (package
+ (name "coq-mathcomp-analysis")
+ (version "0.5.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/math-comp/analysis")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1l1yaxbmqr4li8x7g51q98a6v383dnf94lw1b74ccpwqz9qybz9m"))))
+ (build-system gnu-build-system)
+ (arguments
+ `( ;No rule to make target 'check'. Stop.
+ ;; Makefile.common has no references to tests.
+ ;; There are also no references to tests found after
+ ;; running the following commands in the top
+ ;; directory of the cloned repo:
+ ;; find -type d | grep -i test
+ ;; rg test # where rg is ripgrep
+ ;; Checking the git log, we find: "Add test suite for
+ ;; joins and several fixes".
+ ;;
+ ;; If tests are included, this quote suggests that they
+ ;; would be part of the source files themselves,
+ ;; and the tests would be run as part of the build
+ ;; process.
+ #:tests? #f
+ #:make-flags ,#~(list (string-append "COQBIN="
+ #$(this-package-input "coq-core")
+ "/bin/")
+ (string-append "COQBININSTALL="
+ (assoc-ref %outputs "out") "/bin/")
+ (string-append "DESTDIR="
+ (assoc-ref %outputs "out"))
+ (string-append "COQMF_COQLIB="
+ (assoc-ref %outputs "out")
+ "/lib/ocaml/site-lib/coq")
+ (string-append "COQLIBINSTALL="
+ (assoc-ref %outputs "out")
+ "/lib/coq/user-contrib"))
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "build" make-flags))))))
+ (inputs (list coq
+ coq-stdlib
+ coq-mathcomp
+ coq-mathcomp-finmap
+ coq-mathcomp-hierarchy-builder
+ coq-elpi
+ coq-mathcomp-bigenough
+ coq-core
+ which
+ python))
+ (synopsis "Real analysis for the Coq proof assistant")
+ (description
+ "This repository contains an experimental library for
+real analysis for the Coq proof-assistant, using the Mathematical
+Components library.")
+ (home-page "https://math-comp.github.io/")
+ (license license:cecill-c)))