2014-09-28 14:00:14 +01:00
|
|
|
{ stdenv, fetchurl, emacs, texinfo, texLive, perl, which, automake, enableDoc ? false }:
|
2014-06-21 06:31:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "ProofGeneral-4.3pre131011";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://proofgeneral.inf.ed.ac.uk/releases/ProofGeneral-4.3pre131011.tgz;
|
|
|
|
sha256 = "0104iy2xik5npkdg9p2ir6zqyrmdc93azrgm3ayvg0z76vmnb816";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = name;
|
|
|
|
|
2014-09-28 14:00:14 +01:00
|
|
|
buildInputs = [ emacs texinfo perl which ] ++ stdenv.lib.optional enableDoc texLive;
|
2014-06-21 06:31:55 +01:00
|
|
|
|
|
|
|
prePatch =
|
|
|
|
'' sed -i "Makefile" \
|
|
|
|
-e "s|^\(\(DEST_\)\?PREFIX\)=.*$|\1=$out|g ; \
|
|
|
|
s|/sbin/install-info|install-info|g"
|
|
|
|
|
|
|
|
|
|
|
|
sed -i "bin/proofgeneral" -e's/which/type -p/g'
|
|
|
|
|
|
|
|
# @image{ProofGeneral} fails, so remove it.
|
|
|
|
sed -i '94d' doc/PG-adapting.texi
|
|
|
|
sed -i '96d' doc/ProofGeneral.texi
|
|
|
|
'';
|
|
|
|
|
2014-09-28 14:00:14 +01:00
|
|
|
patches = [ ./pg.patch ];
|
|
|
|
|
2014-06-21 06:31:55 +01:00
|
|
|
preBuild = ''
|
|
|
|
make clean;
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase =
|
2014-09-28 14:00:14 +01:00
|
|
|
if enableDoc
|
|
|
|
then
|
2014-06-21 06:31:55 +01:00
|
|
|
# Copy `texinfo.tex' in the right place so that `texi2pdf' works.
|
|
|
|
'' cp -v "${automake}/share/"automake-*/texinfo.tex doc
|
|
|
|
make install install-doc
|
2014-09-28 14:00:14 +01:00
|
|
|
''
|
|
|
|
else "make install";
|
2014-06-21 06:31:55 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Proof General, an Emacs front-end for proof assistants";
|
|
|
|
longDescription = ''
|
|
|
|
Proof General is a generic front-end for proof assistants (also known as
|
|
|
|
interactive theorem provers), based on the customizable text editor Emacs.
|
|
|
|
'';
|
|
|
|
homepage = http://proofgeneral.inf.ed.ac.uk;
|
|
|
|
license = "GPLv2+";
|
|
|
|
platforms = stdenv.lib.platforms.unix; # arbitrary choice
|
|
|
|
};
|
|
|
|
})
|