2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
2018-11-20 23:16:27 +00:00
|
|
|
|
2018-12-14 10:52:14 +00:00
|
|
|
let param =
|
2018-11-20 23:16:27 +00:00
|
|
|
{
|
|
|
|
version = "20181102";
|
|
|
|
rev = "82a85b7ec07e71fa6b30cfc05f6a7bfb09ef2510";
|
|
|
|
sha256 = "08zry20flgj7qq37xk32kzmg4fg6d4wi9m7pf9aph8fd3j2a0b5v";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-11-20 23:16:27 +00:00
|
|
|
name = "coq${coq.coq-version}-StructTact-${param.version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uwplse";
|
|
|
|
repo = "StructTact";
|
|
|
|
inherit (param) rev sha256;
|
|
|
|
};
|
|
|
|
|
2018-12-14 10:52:14 +00:00
|
|
|
buildInputs = [ coq ];
|
|
|
|
|
2018-11-20 23:16:27 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-12-14 10:52:14 +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 = {
|
2018-12-14 10:52:14 +00:00
|
|
|
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.5";
|
2018-11-20 23:16:27 +00:00
|
|
|
};
|
|
|
|
}
|