2017-09-02 16:31:44 +01:00
|
|
|
{ stdenv, fetchgit, coq, ssreflect }:
|
|
|
|
|
|
|
|
let param =
|
|
|
|
{
|
|
|
|
"8.5" = {
|
|
|
|
version = "20170512";
|
|
|
|
rev = "31eb050ae5ce57ab402db9726fb7cd945a0b4d03";
|
|
|
|
sha256 = "033ch10i5wmqyw8j6wnr0dlbnibgfpr1vr0c07q3yj6h23xkmqpg";
|
|
|
|
};
|
|
|
|
|
|
|
|
"8.6" = {
|
2017-11-12 17:17:48 +00:00
|
|
|
version = "20171102";
|
|
|
|
rev = "0fdb769e1dc87a278383b44a9f5102cc7ccbafcf";
|
|
|
|
sha256 = "0fri4nih40vfb0fbr82dsi631ydkw48xszinq43lyinpknf54y17";
|
|
|
|
};
|
|
|
|
|
|
|
|
"8.7" = {
|
|
|
|
version = "20171102";
|
|
|
|
rev = "ddf746809c211fa7edfdbfe459d5a7e1cca47a44";
|
|
|
|
sha256 = "0jg3x0w8p088b8369qx492hjpq09f9h2i0li6ph3pny6hdkpdzsi";
|
2017-09-02 16:31:44 +01:00
|
|
|
};
|
2017-10-21 00:29:00 +01:00
|
|
|
|
2017-09-02 16:31:44 +01:00
|
|
|
}."${coq.coq-version}"
|
|
|
|
; in
|
2015-08-18 20:28:33 +01:00
|
|
|
|
2015-05-08 17:35:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2017-09-02 16:31:44 +01:00
|
|
|
name = "coq${coq.coq-version}-QuickChick-${param.version}";
|
2015-05-08 17:35:00 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/QuickChick/QuickChick.git;
|
2017-09-02 16:31:44 +01:00
|
|
|
inherit (param) rev sha256;
|
2015-05-08 17:35:00 +01:00
|
|
|
};
|
|
|
|
|
2017-11-12 17:17:48 +00:00
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ];
|
2017-09-02 16:31:44 +01:00
|
|
|
propagatedBuildInputs = [ coq ssreflect ];
|
2015-05-08 17:35:00 +01:00
|
|
|
|
2017-11-12 17:17:48 +00:00
|
|
|
enableParallelBuilding = false;
|
2015-05-08 17:35:00 +01:00
|
|
|
|
2017-11-12 17:17:48 +00:00
|
|
|
installPhase = ''
|
|
|
|
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
|
|
|
|
'';
|
2015-05-08 17:35:00 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = git://github.com/QuickChick/QuickChick.git;
|
|
|
|
description = "Randomized property-based testing plugin for Coq; a clone of Haskell QuickCheck";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|