2010-06-07 00:39:28 +02:00
|
|
|
{ stdenv, fetchurl, emacs, texinfo, texLive, perl, which, automake }:
|
2009-12-11 17:18:27 +01:00
|
|
|
|
2011-05-14 22:59:53 +02:00
|
|
|
stdenv.mkDerivation (rec {
|
2013-03-19 14:49:45 +01:00
|
|
|
name = "ProofGeneral-4.2";
|
2009-12-11 17:18:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-03-19 14:49:45 +01:00
|
|
|
url = http://proofgeneral.inf.ed.ac.uk/releases/ProofGeneral-4.2.tgz;
|
|
|
|
sha256 = "09qb0myq66fw17v4ziz401ilsb5xlxz1nl2wsp69d0vrfy0bcrrm";
|
2009-12-11 17:18:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = name;
|
|
|
|
|
2010-06-07 00:39:28 +02:00
|
|
|
buildInputs = [ emacs texinfo texLive perl which ];
|
|
|
|
|
2011-12-13 02:13:46 +01:00
|
|
|
prePatch =
|
2010-06-07 00:39:28 +02:00
|
|
|
'' sed -i "Makefile" \
|
|
|
|
-e "s|^\(\(DEST_\)\?PREFIX\)=.*$|\1=$out|g ; \
|
|
|
|
s|/sbin/install-info|install-info|g"
|
2009-12-11 17:18:27 +01:00
|
|
|
|
2013-04-23 14:09:10 +02:00
|
|
|
|
|
|
|
# Workaround for bug #458
|
|
|
|
# ProofGeneral 4.2 byte-compilation fails with Emacs 24.2.90
|
|
|
|
# http://proofgeneral.inf.ed.ac.uk/trac/ticket/458
|
|
|
|
sed -i "Makefile" \
|
|
|
|
-e "s|(setq byte-compile-error-on-warn t)||g"
|
|
|
|
|
2010-06-07 00:39:28 +02:00
|
|
|
sed -i "bin/proofgeneral" -e's/which/type -p/g'
|
2011-12-13 02:13:46 +01:00
|
|
|
|
|
|
|
# @image{ProofGeneral} fails, so remove it.
|
|
|
|
sed -i '94d' doc/PG-adapting.texi
|
|
|
|
sed -i '101d' doc/ProofGeneral.texi
|
2010-06-07 00:39:28 +02:00
|
|
|
'';
|
2009-12-11 17:18:27 +01:00
|
|
|
|
2011-12-13 02:13:46 +01:00
|
|
|
preBuild = ''
|
|
|
|
make clean;
|
|
|
|
'';
|
2011-05-14 22:59:53 +02:00
|
|
|
|
2010-06-07 00:39:28 +02:00
|
|
|
installPhase =
|
|
|
|
# Copy `texinfo.tex' in the right place so that `texi2pdf' works.
|
|
|
|
'' cp -v "${automake}/share/"automake-*/texinfo.tex doc
|
|
|
|
make install install-doc
|
|
|
|
'';
|
2009-12-11 17:18:27 +01:00
|
|
|
|
|
|
|
meta = {
|
2010-06-07 00:39:28 +02:00
|
|
|
description = "Proof General, an Emacs front-end for proof assistants";
|
2009-12-11 17:18:27 +01:00
|
|
|
longDescription = ''
|
|
|
|
Proof General is a generic front-end for proof assistants (also known as
|
|
|
|
interactive theorem provers), based on the customizable text editor Emacs.
|
|
|
|
'';
|
2011-05-14 22:59:53 +02:00
|
|
|
homepage = http://proofgeneral.inf.ed.ac.uk;
|
2010-06-07 00:39:28 +02:00
|
|
|
license = "GPLv2+";
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2009-12-11 17:18:27 +01:00
|
|
|
};
|
2011-05-14 22:59:53 +02:00
|
|
|
})
|