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