2017-12-15 16:53:31 +00:00
|
|
|
{ stdenv, fetchgit, coq, ssreflect }:
|
2017-12-15 04:41:21 +00:00
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
let params =
|
2017-12-15 04:41:21 +00:00
|
|
|
{
|
|
|
|
"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
|
|
|
};
|
2018-10-05 01:13:02 +01:00
|
|
|
|
|
|
|
"8.8" = {
|
|
|
|
version = "20171215";
|
|
|
|
rev = "e2cf8b270c2efa3b56fab1ef6acc376c2c3de968";
|
|
|
|
sha256 = "09dq1vvshhlhgjccrhqgbhnq2hrys15xryfszqq11rzpgvl2zgdv";
|
|
|
|
};
|
2018-03-21 14:00:47 +00:00
|
|
|
};
|
2019-08-13 22:52:01 +01:00
|
|
|
param = params.${coq.coq-version};
|
2018-03-21 14:00:47 +00:00
|
|
|
in
|
2017-12-15 04:41:21 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2017-12-15 04:41:21 +00:00
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-coq-haskell-${param.version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "git://github.com/jwiegley/coq-haskell.git";
|
2017-12-15 04:41:21 +00:00
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
2018-10-19 09:25:09 +01:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jwiegley/coq-haskell";
|
2017-12-15 04:41:21 +00:00
|
|
|
description = "A library for formalizing Haskell types and functions in Coq";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2018-03-21 14:00:47 +00:00
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = v: builtins.hasAttr v params;
|
|
|
|
};
|
2017-12-15 04:41:21 +00:00
|
|
|
}
|