@@ -2,10 +2,10 @@
22# - The csdp program used for the Micromega tactic is statically referenced.
33# However, coq can build without csdp by setting it to null.
44# In this case some Micromega tactics will search the user's path for the csdp program and will fail if it is not found.
5−# - The patch-level version can be specified through the `version` argument to
6−# the derivation; it defaults to the greatest.
5+# - The exact version can be specified through the `version` argument to
6+# the derivation; it defaults to the latest stable version.
77
8−{ stdenv, fetchurl, writeText, pkgconfig
8+{ stdenv, fetchFromGitHub, writeText, pkgconfig
99, ocamlPackages, ncurses
1010, buildIde ? true
1111, csdp ? null
@@ -14,11 +14,11 @@
1414
1515let
1616 sha256 = {
17− "8.5pl1" = "1w2xvm6w16khfn63bp95s25hnkn2ny3w0yqg3lq63gp11aqpbyjb";
18− "8.5pl2" = "0wyywia0darak2zmc5v0ra9rn0b9whwdfiahralm8v5za499s8w3";
19− "8.5pl3" = "0fyk2a4fpifibq8y8jhx1891k55qnsnlygglch64sva0bph94nrh";
20− "8.6" = "1pw1xvy1657l1k69wrb911iqqflzhhp8wwsjvihbgc72r3skqg3f";
21− "8.6.1" = "17cg2c40y9lskkiqfhngavp8yw3shpqgkpihh30xx0rlhn9amy1j";
17+ "8.5pl1" = "1976ki5xjg2r907xj9p7gs0kpdinywbwcqlgxqw75dgp0hkgi00n";
18+ "8.5pl2" = "109rrcrx7mz0fj7725kjjghfg5ydwb24hjsa5hspa27b4caah7rh";
19+ "8.5pl3" = "15c3rdk59nifzihsp97z4vjxis5xmsnrvpb86qiazj143z2fmdgw";
20+ "8.6" = "148mb48zpdax56c0blfi7v67lx014lnmrvxxasi28hsibyz2lvg4";
21+ "8.6.1" = "0llrxcxwy5j87vbbjnisw42rfw1n1pm5602ssx64xaxx3k176g6l";
2222 }."${version}";
2323 coq-version = builtins.substring 0 3 version;
2424 camlp5 = ocamlPackages.camlp5_strict;
@@ -81,8 +81,10 @@ self = stdenv.mkDerivation {
8181 '';
8282 };
8383
84− src = fetchurl {
85− url = "http://coq.inria.fr/distrib/V${version}/files/coq-${version}.tar.gz";
84+ src = fetchFromGitHub {
85+ owner = "coq";
86+ repo = "coq";
87+ rev = "V${version}";
8688 inherit sha256;
8789 };
8890