1 { lib, stdenv, fetchurl, emacs, texliveBasic, ghostscript }:
3 let auctex = stdenv.mkDerivation ( rec {
4 # Make this a valid tex(live-new) package;
5 # the pkgs attribute is provided with a hack below.
10 outputs = [ "out" "tex" ];
13 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
14 hash = "sha256-Hn5AKrz4RmlOuncZklvwlcI+8zpeZgIgHHS2ymCUQDU=";
20 (texliveBasic.withPackages (ps: [ ps.etoolbox ps.hypdoc ]))
25 export HOME=$(mktemp -d)
29 "--with-lispdir=\${out}/share/emacs/site-lisp"
30 "--with-texmf-dir=\${tex}"
34 homepage = "https://www.gnu.org/software/auctex";
35 description = "Extensible package for writing and formatting TeX files in GNU Emacs and XEmacs";
36 license = licenses.gpl3Plus;
37 platforms = platforms.unix;
41 in auctex // { pkgs = [ auctex.tex ]; }