2017-12-15 16:53:31 +00:00
|
|
|
{ stdenv, fetchgit, coq, ssreflect }:
|
2017-12-15 04:41:21 +00:00
|
|
|
|
|
|
|
let param =
|
|
|
|
{
|
|
|
|
"8.5" = {
|
2017-12-15 16:53:31 +00:00
|
|
|
version = "20171215";
|
|
|
|
rev = "e2cf8b270c2efa3b56fab1ef6acc376c2c3de968";
|
|
|
|
sha256 = "09dq1vvshhlhgjccrhqgbhnq2hrys15xryfszqq11rzpgvl2zgdv";
|
2017-12-15 04:41:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.6" = {
|
2017-12-15 16:53:31 +00:00
|
|
|
version = "20171215";
|
|
|
|
rev = "e2cf8b270c2efa3b56fab1ef6acc376c2c3de968";
|
|
|
|
sha256 = "09dq1vvshhlhgjccrhqgbhnq2hrys15xryfszqq11rzpgvl2zgdv";
|
2017-12-15 04:41:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.7" = {
|
2017-12-15 16:53:31 +00:00
|
|
|
version = "20171215";
|
|
|
|
rev = "e2cf8b270c2efa3b56fab1ef6acc376c2c3de968";
|
|
|
|
sha256 = "09dq1vvshhlhgjccrhqgbhnq2hrys15xryfszqq11rzpgvl2zgdv";
|
2017-12-15 04:41:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}."${coq.coq-version}"
|
|
|
|
; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-coq-haskell-${param.version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/jwiegley/coq-haskell.git;
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ];
|
2017-12-15 16:53:31 +00:00
|
|
|
propagatedBuildInputs = [ coq ssreflect ];
|
2017-12-15 04:41:21 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = git://github.com/jwiegley/coq-haskell.git;
|
|
|
|
description = "A library for formalizing Haskell types and functions in Coq";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|