2015-05-28 19:31:12 +01:00
|
|
|
{ callPackage, coq, fetchurl }:
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
let src =
|
|
|
|
if coq.coq-version == "8.4" then
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
fetchurl {
|
2015-12-20 19:12:23 +00:00
|
|
|
url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.6.tar.gz;
|
|
|
|
sha256 = "0adr556032r1jkvphbpfvrrv041qk0yqb7a1xnbam52ji0mdl2w8";
|
2015-05-28 19:31:12 +01:00
|
|
|
}
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
else if coq.coq-version == "8.5" then
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
fetchurl {
|
2015-12-20 19:12:23 +00:00
|
|
|
url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.6.tar.gz;
|
|
|
|
sha256 = "0adr556032r1jkvphbpfvrrv041qk0yqb7a1xnbam52ji0mdl2w8";
|
2015-05-28 19:31:12 +01:00
|
|
|
}
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
else throw "No mathcomp package for Coq version ${coq.coq-version}";
|
2014-10-13 22:10:19 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
in
|
2014-09-28 12:43:48 +01:00
|
|
|
|
2015-05-28 19:31:12 +01:00
|
|
|
callPackage ./generic.nix {
|
|
|
|
inherit src;
|
2014-09-28 12:43:48 +01:00
|
|
|
}
|