2018-12-14 10:52:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq, Cheerios, InfSeqExt, ssreflect }:
|
2018-11-20 23:16:27 +00:00
|
|
|
|
2018-12-14 10:52:31 +00:00
|
|
|
let param =
|
2019-04-18 10:38:28 +00:00
|
|
|
if stdenv.lib.versionAtLeast coq.coq-version "8.7" then
|
2018-11-20 23:16:27 +00:00
|
|
|
{
|
2019-04-18 10:38:28 +00:00
|
|
|
version = "20190202";
|
|
|
|
rev = "bc193be9ea8485add7646a0f72e2aa76a9c7e01f";
|
|
|
|
sha256 = "1adkwxnmc9qfah2bya0hpd2vzkmk1y212z4n7fcmvr1a85ykgd7z";
|
|
|
|
} else {
|
2018-11-20 23:16:27 +00:00
|
|
|
version = "20181102";
|
|
|
|
rev = "25b79cf1be5527ab8dc1b8314fcee93e76a2e564";
|
|
|
|
sha256 = "1vw47c37k5vaa8vbr6ryqy8riagngwcrfmb3rai37yi9xhdqg55z";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-11-20 23:16:27 +00:00
|
|
|
name = "coq${coq.coq-version}-verdi-${param.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uwplse";
|
|
|
|
repo = "verdi";
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
2018-12-14 10:52:31 +00:00
|
|
|
buildInputs = [ coq ];
|
|
|
|
propagatedBuildInputs = [ Cheerios InfSeqExt ssreflect ];
|
|
|
|
|
2018-11-20 23:16:27 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-12-14 10:52:31 +00:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
2018-11-20 23:16:27 +00:00
|
|
|
|
|
|
|
passthru = {
|
2019-05-14 08:31:49 +00:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ];
|
2018-11-20 23:16:27 +00:00
|
|
|
};
|
|
|
|
}
|