refactor(emacs): use plex-latex from sydpkgs
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let cfg = config.sydnix.users.msyds.emacs.plex-latex;
|
let cfg = config.sydnix.users.msyds.emacs.plex-latex;
|
||||||
in {
|
in {
|
||||||
@@ -7,40 +7,9 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
sydnix.emacs.tex.extraTexPackages =
|
sydnix.sydpkgs.overlay.enable = true;
|
||||||
let syd-plex = pkgs.stdenvNoCC.mkDerivation (final: {
|
sydnix.emacs.tex.extraTexPackages = {
|
||||||
pname = "syd-plex-latex";
|
inherit (pkgs) syd-plex-latex;
|
||||||
version = "1.0.0";
|
};
|
||||||
src = ./plex-latex;
|
|
||||||
nativeBuildInputs = [ pkgs.texlive.combined.scheme-small ];
|
|
||||||
passthru = {
|
|
||||||
pkgs = [ final.finalPackage ];
|
|
||||||
tlDeps = with pkgs.texlive; [
|
|
||||||
plex
|
|
||||||
plex-otf
|
|
||||||
fontaxes
|
|
||||||
unicode-math
|
|
||||||
xetex
|
|
||||||
];
|
|
||||||
tlType = "run";
|
|
||||||
};
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
dir="$out/tex/latex/syd-plex"
|
|
||||||
mkdir -p "$dir"
|
|
||||||
mv syd-plex.sty "$dir"
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
inherit syd-plex;
|
|
||||||
inherit (pkgs.texlive)
|
|
||||||
plex
|
|
||||||
plex-otf
|
|
||||||
fontaxes
|
|
||||||
unicode-math
|
|
||||||
xetex
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user