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" ];
|
|
|
|
|
2007-09-20 11:32:20 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
|
2021-05-12 03:58:03 +00:00
|
|
|
hash = "sha256-L9T+MLaUV8knf+IE0+g8hHK89QDI/kqBDXREBhdMqd0=";
|
2007-09-20 11:32:20 +00:00
|
|
|
};
|
2008-03-16 12:38:59 +00:00
|
|
|
|
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"
|
|
|
|
'';
|
2008-03-16 12:38:59 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2008-04-22 20:28:25 +00:00
|
|
|
"--with-lispdir=\${out}/share/emacs/site-lisp"
|
2016-05-10 18:49:26 +00:00
|
|
|
"--with-texmf-dir=\${tex}"
|
2008-03-16 12:38:59 +00:00
|
|
|
];
|
2016-08-02 16:19:16 +00:00
|
|
|
|
2021-05-12 03:58:03 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
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-08-02 16:19:16 +00:00
|
|
|
};
|
2016-05-10 18:49:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
in auctex // { pkgs = [ auctex.tex ]; }
|