nixpkgs/pkgs/tools/typesetting/tex/auctex/default.nix

41 lines
970 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, emacs, texlive, ghostscript }:
2016-05-10 18:49:26 +00:00
let auctex = stdenv.mkDerivation ( rec {
# Make this a valid tex(live-new) package;
# the pkgs attribute is provided with a hack below.
pname = "auctex";
2021-05-12 03:58:03 +00:00
version = "12.3";
2016-05-10 18:49:26 +00:00
tlType = "run";
outputs = [ "out" "tex" ];
src = fetchurl {
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
2021-05-12 03:58:03 +00:00
hash = "sha256-L9T+MLaUV8knf+IE0+g8hHK89QDI/kqBDXREBhdMqd0=";
};
2021-05-12 03:58:03 +00:00
buildInputs = [
emacs
ghostscript
texlive.combined.scheme-basic
];
2016-05-10 18:49:26 +00:00
preConfigure = ''
mkdir -p "$tex"
'';
configureFlags = [
"--with-lispdir=\${out}/share/emacs/site-lisp"
2016-05-10 18:49:26 +00:00
"--with-texmf-dir=\${tex}"
];
2021-05-12 03:58:03 +00:00
meta = with lib; {
homepage = "https://www.gnu.org/software/auctex";
2021-05-12 03:58:03 +00:00
description = "Extensible package for writing and formatting TeX files in GNU Emacs and XEmacs";
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
2016-05-10 18:49:26 +00:00
});
in auctex // { pkgs = [ auctex.tex ]; }