Add coq-tlc.
more/packages/ocaml.scm
| 783 | 783 | (synopsis "") | |
| 784 | 784 | (description "") | |
| 785 | 785 | (license license:gpl2+))) | |
| 786 | + | ||
| 787 | + | (define-public coq-tlc | |
| 788 | + | (package | |
| 789 | + | (name "coq-tlc") | |
| 790 | + | (version "20181116") | |
| 791 | + | (source (origin | |
| 792 | + | (method git-fetch) | |
| 793 | + | (uri (git-reference | |
| 794 | + | (url "https://gitlab.inria.fr/charguer/tlc") | |
| 795 | + | (commit version))) | |
| 796 | + | (sha256 | |
| 797 | + | (base32 | |
| 798 | + | "1fkb4z92m04wdic4im4fd7dypbr1lnz285f06ci52kxgv2w4bkjz")))) | |
| 799 | + | (build-system gnu-build-system) | |
| 800 | + | (arguments | |
| 801 | + | `(#:tests? #f; no tests | |
| 802 | + | #:phases | |
| 803 | + | (modify-phases %standard-phases | |
| 804 | + | (delete 'configure) | |
| 805 | + | (add-before 'build 'fix-timestamp | |
| 806 | + | (lambda _ | |
| 807 | + | (substitute* "GNUmakefile" | |
| 808 | + | (("\\$\\(shell /bin/date.*") (string-append ,version "\n"))) | |
| 809 | + | #t)) | |
| 810 | + | (add-before 'build 'fix-timestamp | |
| 811 | + | (lambda _ | |
| 812 | + | (substitute* "src/Makefile.coq" | |
| 813 | + | (("/usr/bin/env bash") (which "bash"))) | |
| 814 | + | #t)) | |
| 815 | + | (add-before 'build 'fix-install-dir | |
| 816 | + | (lambda* (#:key outputs #:allow-other-keys) | |
| 817 | + | (substitute* "src/Makefile" | |
| 818 | + | (("TARGET *:=.*") (string-append "TARGET := " (assoc-ref outputs "out") | |
| 819 | + | "/lib/coq/user-contrib/TLC"))) | |
| 820 | + | #t))))) | |
| 821 | + | (native-inputs | |
| 822 | + | `(("coq" ,coq))) | |
| 823 | + | (home-page "") | |
| 824 | + | (synopsis "") | |
| 825 | + | (description "") | |
| 826 | + | (license #f))) |