2017-12-15 06:34:11 +01:00
|
|
|
{ stdenv, fetchgit, coq, ssreflect }:
|
|
|
|
|
|
|
|
let param =
|
|
|
|
{
|
|
|
|
"8.6" = {
|
2018-07-28 01:09:56 +02:00
|
|
|
version = "20180709";
|
|
|
|
rev = "3b9ba7b26a64d49a55e8b6ccea570a7f32c11ead";
|
|
|
|
sha256 = "0f2nr8dgn1ab7hr7jrdmr1zla9g9h8216q4yf4wnff9qkln8sbbs";
|
2017-12-15 06:34:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
"8.7" = {
|
2018-07-28 01:09:56 +02:00
|
|
|
version = "20180709";
|
|
|
|
rev = "3b9ba7b26a64d49a55e8b6ccea570a7f32c11ead";
|
|
|
|
sha256 = "0f2nr8dgn1ab7hr7jrdmr1zla9g9h8216q4yf4wnff9qkln8sbbs";
|
2017-12-15 06:34:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}."${coq.coq-version}"
|
|
|
|
; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-category-theory-${param.version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/jwiegley/category-theory.git;
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
2018-10-19 10:25:09 +02:00
|
|
|
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib ];
|
2018-07-28 09:16:37 +02:00
|
|
|
propagatedBuildInputs = [ coq ssreflect ];
|
2017-12-15 06:34:11 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-09-08 18:30:00 +02:00
|
|
|
homepage = https://github.com/jwiegley/category-theory;
|
2017-12-15 06:34:11 +01:00
|
|
|
description = "A formalization of category theory in Coq for personal study and practical work";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
2017-12-15 20:52:16 +01:00
|
|
|
passthru = {
|
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ];
|
|
|
|
};
|
|
|
|
|
2017-12-15 06:34:11 +01:00
|
|
|
}
|