2018-11-21 00:16:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq, StructTact }:
|
|
|
|
|
2018-12-14 11:52:20 +01:00
|
|
|
let param =
|
2018-11-21 00:16:27 +01:00
|
|
|
{
|
|
|
|
version = "20181102";
|
|
|
|
rev = "04da309304bdd28a1f7dacca9fdf8696204a4ff2";
|
|
|
|
sha256 = "1xfa78p70c90favds1mv1vj5sr9bv0ad3dsgg05v3v72006g2f1q";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-11-21 00:16:27 +01:00
|
|
|
name = "coq${coq.coq-version}-Cheerios-${param.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uwplse";
|
|
|
|
repo = "cheerios";
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
2018-12-14 11:52:20 +01:00
|
|
|
buildInputs = [ coq ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ StructTact ];
|
2018-11-21 00:16:27 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-12-14 11:52:20 +01:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
|
2018-11-21 00:16:27 +01:00
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
|
|
|
|
passthru = {
|
2019-05-14 10:31:49 +02:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ];
|
2018-11-21 00:16:27 +01:00
|
|
|
};
|
|
|
|
}
|