2014-10-11 22:21:34 +01:00
|
|
|
{stdenv, fetchurl, coq}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq-bedrock-${coq.coq-version}-${version}";
|
|
|
|
version = "20140722";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://plv.csail.mit.edu/bedrock/bedrock-${version}.tgz";
|
|
|
|
sha256 = "0aaa98q42rsy9hpsxji21bqznizfvf6fplsw6jq42h06j0049k80";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 ];
|
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-04-10 20:13:36 +01:00
|
|
|
buildPhase = ''
|
|
|
|
make -j$NIX_BUILD_CORES -C src/reification
|
|
|
|
make -j$NIX_BUILD_CORES -C src
|
2015-05-21 16:55:17 +01:00
|
|
|
make -j$NIX_BUILD_CORES -C src native
|
|
|
|
# make -j$NIX_BUILD_CORES -C platform
|
|
|
|
# make -j$NIX_BUILD_CORES -C platform -f Makefile.cito
|
2015-04-10 20:13:36 +01:00
|
|
|
'';
|
2014-10-11 22:21:34 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
2014-10-11 23:24:28 +01:00
|
|
|
mkdir -p $COQLIB/user-contrib/Bedrock
|
2015-04-10 20:13:36 +01:00
|
|
|
cp -pR src/* $COQLIB/user-contrib/Bedrock
|
2014-10-11 22:21:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://plv.csail.mit.edu/bedrock/;
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A library that turns Coq into a tool much like classical verification systems";
|
2014-10-11 22:21:34 +01:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|