2014-10-11 19:29:12 +01:00
|
|
|
{stdenv, fetchsvn, coq}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "coq-tlc-${coq.coq-version}";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = svn://scm.gforge.inria.fr/svn/tlc/branches/v3.1;
|
|
|
|
rev = 240;
|
|
|
|
sha256 = "0mjnb6n9wzb13y2ix9cvd6irzd9d2gj8dcm2x71wgan0jcskxadm";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 ];
|
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
2015-06-02 07:49:51 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patch Makefile <<EOF
|
|
|
|
105c105
|
|
|
|
< \$(COQC) \$<
|
|
|
|
---
|
|
|
|
> \$(COQC) -R . Tlc \$<
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2014-10-11 19:29:12 +01:00
|
|
|
installPhase = ''
|
|
|
|
COQLIB=$out/lib/coq/${coq.coq-version}/
|
2014-10-11 23:24:28 +01:00
|
|
|
mkdir -p $COQLIB/user-contrib/Tlc
|
2014-10-11 19:29:12 +01:00
|
|
|
cp -p *.vo $COQLIB/user-contrib/Tlc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.chargueraud.org/softs/tlc/;
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A general purpose Coq library that provides an alternative to Coq's standard library";
|
2014-10-11 19:29:12 +01:00
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|