Add coq-8.6 and opam2
more/packages/ocaml.scm
| 448 | 448 | the OCaml core distribution.") | |
| 449 | 449 | (license license:lgpl2.1+))); with linking exception | |
| 450 | 450 | ||
| 451 | + | (define-public coq-8.6 | |
| 452 | + | (package | |
| 453 | + | (inherit coq) | |
| 454 | + | (name "coq") | |
| 455 | + | (version "8.6.1") | |
| 456 | + | (source (origin | |
| 457 | + | (method url-fetch) | |
| 458 | + | (uri (string-append "https://github.com/coq/coq/archive/V" | |
| 459 | + | version ".tar.gz")) | |
| 460 | + | (file-name (string-append name "-" version ".tar.gz")) | |
| 461 | + | (sha256 | |
| 462 | + | (base32 | |
| 463 | + | "02nm5sn79hrb9fdmkhyclk80jydadf4jcafmr3idwr5h4z56qbms")))) | |
| 464 | + | ;(native-inputs | |
| 465 | + | ; `(("ocamlbuild" ,ocaml-build) | |
| 466 | + | ; ("hevea" ,hevea) | |
| 467 | + | ; ("texlive" ,texlive))) | |
| 468 | + | ;(inputs | |
| 469 | + | ; `(("lablgtk" ,lablgtk) | |
| 470 | + | ; ("python" ,python-2) | |
| 471 | + | ; ("camlp5" ,camlp5))) | |
| 472 | + | (arguments | |
| 473 | + | `(#:phases | |
| 474 | + | (modify-phases %standard-phases | |
| 475 | + | (replace 'configure | |
| 476 | + | (lambda* (#:key outputs #:allow-other-keys) | |
| 477 | + | (let* ((out (assoc-ref outputs "out")) | |
| 478 | + | (mandir (string-append out "/share/man")) | |
| 479 | + | (browser "icecat -remote \"OpenURL(%s,new-tab)\"")) | |
| 480 | + | (invoke "./configure" | |
| 481 | + | "-prefix" out | |
| 482 | + | "-mandir" mandir | |
| 483 | + | "-browser" browser | |
| 484 | + | "-coqide" "opt")) | |
| 485 | + | #t)) | |
| 486 | + | (replace 'build | |
| 487 | + | (lambda* (#:key inputs #:allow-other-keys) | |
| 488 | + | (substitute* "ide/ideutils.ml" | |
| 489 | + | (("Bytes.unsafe_to_string read_string") "read_string")) | |
| 490 | + | (invoke "make" "-j" (number->string | |
| 491 | + | (parallel-job-count)) | |
| 492 | + | "world") | |
| 493 | + | #t)) | |
| 494 | + | (delete 'check) | |
| 495 | + | (add-after 'install 'check | |
| 496 | + | (lambda _ | |
| 497 | + | (with-directory-excursion "test-suite" | |
| 498 | + | (invoke "make")) | |
| 499 | + | #t))))))) | |
| 500 | + | ||
| 451 | 501 | (define-public coq-8.7 | |
| 452 | 502 | (package | |
| 453 | 503 | (inherit coq) | |
… | |||
| 881 | 931 | (synopsis "") | |
| 882 | 932 | (description "") | |
| 883 | 933 | (license license:lgpl2.1+))) | |
| 934 | + | ||
| 935 | + | (define-public opam2 | |
| 936 | + | (package | |
| 937 | + | (inherit opam) | |
| 938 | + | (version "2.0.0") | |
| 939 | + | (source (origin | |
| 940 | + | (method url-fetch) | |
| 941 | + | ;; Use the '-full' version, which includes all the dependencies. | |
| 942 | + | (uri (string-append | |
| 943 | + | "https://github.com/ocaml/opam/releases/download/" | |
| 944 | + | version "/opam-full-" version ".tar.gz") | |
| 945 | + | ;; (string-append "https://github.com/ocaml/opam/archive/" | |
| 946 | + | ;; version ".tar.gz") | |
| 947 | + | ) | |
| 948 | + | (sha256 | |
| 949 | + | (base32 | |
| 950 | + | "09gdpxiqmyr6z78l85d7pwhiwrycdi2xi1b2mafqr1sk9z5lzbcx")))))) | |