git.iko.soy/typeable/nixpkgs
on master help sign in
auctex: enable preview
commitf3a753829d8e385255db2a85ff67798ea34c86fd authorGuillaume Maudoux <layus.on@gmail.com> dateTue 10 May 2016, 20:49 (11 years ago) parent0b3e1f8
1 file changed+19−6
pkgs/tools/typesetting/tex/auctex/default.nix+19−6
pkgs/tools/typesetting/tex/auctex/default.nix+19−6
@@ -1,10 +1,17 @@
1−{ stdenv, fetchurl, emacs, texLive }:
1+{ stdenv, fetchurl, emacs, texlive, ghostscript }:
22
3−stdenv.mkDerivation ( rec {
4− pname = "auctex";
3+let auctex = stdenv.mkDerivation ( rec {
54 version = "11.89";
65 name = "${pname}-${version}";
76
7+ # Make this a valid tex(live-new) package;
8+ # the pkgs attribute is provided with a hack below.
9+ pname = "auctex";
10+ tlType = "run";
11+
12+
13+ outputs = [ "out" "tex" ];
14+
815 meta = {
916 description = "Extensible package for writing and formatting TeX files in GNU Emacs and XEmacs";
1017 homepage = http://www.gnu.org/software/auctex;
@@ -15,10 +22,16 @@ stdenv.mkDerivation ( rec {
1522 sha256 = "1cf9fkkmzjxa4jvk6c01zgxdikr4zzb5pcx8i4r0hwdk0xljkbwq";
1623 };
1724
18− buildInputs = [ emacs texLive ];
25+ buildInputs = [ emacs texlive.combined.scheme-basic ghostscript ];
26+
27+ preConfigure = ''
28+ mkdir -p "$tex"
29+ '';
1930
2031 configureFlags = [
2132 "--with-lispdir=\${out}/share/emacs/site-lisp"
22− "--disable-preview"
33+ "--with-texmf-dir=\${tex}"
2334 ];
24−})
35+});
36+
37+in auctex // { pkgs = [ auctex.tex ]; }