diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-04 21:51:39 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-05 19:09:36 +0200 |
commit | 7b805bd0b0663613b89c5b9a2f037acdcf46b121 (patch) | |
tree | feaab5918c7027135462155d750a520b3b2ea2dc /pkgs/applications | |
parent | 2a2a3c796aa3e339248519ffed099525545f1b5c (diff) | |
download | nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar.gz nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar.bz2 nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar.lz nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar.xz nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.tar.zst nixlib-7b805bd0b0663613b89c5b9a2f037acdcf46b121.zip |
ProofGeneral: 4.2 -> 4.4
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/editors/emacs-modes/proofgeneral/4.2.nix | 54 | ||||
-rw-r--r-- | pkgs/applications/editors/emacs-modes/proofgeneral/4.4.nix | 47 |
2 files changed, 47 insertions, 54 deletions
diff --git a/pkgs/applications/editors/emacs-modes/proofgeneral/4.2.nix b/pkgs/applications/editors/emacs-modes/proofgeneral/4.2.nix deleted file mode 100644 index c026d058b4e3..000000000000 --- a/pkgs/applications/editors/emacs-modes/proofgeneral/4.2.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ stdenv, fetchurl, emacs, texinfo, texLive, perl, which, automake }: - -stdenv.mkDerivation (rec { - name = "ProofGeneral-4.2"; - - src = fetchurl { - url = http://proofgeneral.inf.ed.ac.uk/releases/ProofGeneral-4.2.tgz; - sha256 = "09qb0myq66fw17v4ziz401ilsb5xlxz1nl2wsp69d0vrfy0bcrrm"; - }; - - sourceRoot = name; - - buildInputs = [ emacs texinfo texLive perl which ]; - - prePatch = - '' sed -i "Makefile" \ - -e "s|^\(\(DEST_\)\?PREFIX\)=.*$|\1=$out|g ; \ - s|/sbin/install-info|install-info|g" - - - # 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" - - 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 '101d' doc/ProofGeneral.texi - ''; - - preBuild = '' - make clean; - ''; - - installPhase = - # Copy `texinfo.tex' in the right place so that `texi2pdf' works. - '' cp -v "${automake}/share/"automake-*/texinfo.tex doc - make install install-doc - ''; - - 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 = stdenv.lib.licenses.gpl2Plus; - platforms = stdenv.lib.platforms.unix; # arbitrary choice - }; -}) diff --git a/pkgs/applications/editors/emacs-modes/proofgeneral/4.4.nix b/pkgs/applications/editors/emacs-modes/proofgeneral/4.4.nix new file mode 100644 index 000000000000..0f7ac1d1dc80 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/proofgeneral/4.4.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchFromGitHub, emacs, texinfo, texLive, which, automake, enableDoc ? false }: + +stdenv.mkDerivation rec { + name = "ProofGeneral-${version}"; + version = "4.4"; + + src = fetchFromGitHub { + owner = "ProofGeneral"; + repo = "PG"; + rev = "v${version}"; + sha256 = "0bdfk91wf71z80mdfnl8hpinripndcjgdkz854zil6521r84nqk8"; + }; + + buildInputs = [ emacs which ] ++ stdenv.lib.optionals enableDoc [ texinfo texLive ]; + + 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' + + chmod +x bin/proofgeneral + + # @image{ProofGeneral-image} fails, so remove it. + sed -i '91d' doc/PG-adapting.texi + sed -i '96d' doc/ProofGeneral.texi + '' + stdenv.lib.optionalString enableDoc + # Copy `texinfo.tex' in the right place so that `texi2pdf' works. + '' cp -v "${automake}/share/"automake-*/texinfo.tex doc + ''; + + patches = [ ./pg.patch ]; + + installTargets = [ "install" ] ++ stdenv.lib.optional enableDoc "install-doc"; + + 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 = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.unix; # arbitrary choice + }; +} |