2020-08-28 22:05:46 +01:00
|
|
|
{lib, mkCoqDerivation, coq, python27, version ? null }:
|
2016-10-31 23:21:41 +00:00
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
with lib; mkCoqDerivation rec {
|
|
|
|
pname = "fiat";
|
|
|
|
owner = "mit-plv";
|
|
|
|
repo = "fiat";
|
|
|
|
displayVersion = { fiat = v: "unstable-${v}"; };
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = if coq.coq-version == "8.5" then "2016-10-24" else null;
|
|
|
|
release."2016-10-24".rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a";
|
2022-05-13 05:47:14 +01:00
|
|
|
release."2016-10-24".sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64";
|
2016-10-31 23:21:41 +00:00
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
mlPlugin = true;
|
2022-05-13 05:47:14 +01:00
|
|
|
extraBuildInputs = [ python27 ];
|
2018-11-06 12:10:09 +00:00
|
|
|
|
|
|
|
prePatch = "patchShebangs etc/coq-scripts";
|
2016-10-31 23:21:41 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-10 18:00:23 +01:00
|
|
|
enableParallelBuilding = false;
|
2016-10-31 23:21:41 +00:00
|
|
|
buildPhase = "make -j$NIX_BUILD_CORES";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
|
|
|
mkdir -p $COQLIB/user-contrib/Fiat
|
|
|
|
cp -pR src/* $COQLIB/user-contrib/Fiat
|
|
|
|
'';
|
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://plv.csail.mit.edu/fiat/";
|
2016-10-31 23:21:41 +00:00
|
|
|
description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
2017-12-15 19:52:16 +00:00
|
|
|
};
|
2016-10-31 23:21:41 +00:00
|
|
|
}
|