mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
Merge pull request #59537 from veprbl/pr/texlive_latexindent_deps
texlive: add missing perl dependencies for latexindent
This commit is contained in:
commit
7eeab3726f
@ -2,7 +2,7 @@
|
|||||||
, texlive
|
, texlive
|
||||||
, zlib, libiconv, libpng, libX11
|
, zlib, libiconv, libpng, libX11
|
||||||
, freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
|
, freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
|
||||||
, perl, pkgconfig, autoreconfHook
|
, perl, perlPackages, pkgconfig, autoreconfHook
|
||||||
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
||||||
, cairo, pixman, xorg, clisp, biber
|
, cairo, pixman, xorg, clisp, biber
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
@ -364,4 +364,30 @@ xindy = stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
latexindent = perlPackages.buildPerlPackage rec {
|
||||||
|
inherit (src) name version;
|
||||||
|
|
||||||
|
src = stdenv.lib.head (builtins.filter (p: p.tlType == "run") texlive.latexindent.pkgs);
|
||||||
|
|
||||||
|
outputs = [ "out" ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with perlPackages; [ FileHomeDir LogDispatch LogLog4perl UnicodeLineBreak YAMLTiny ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace scripts/latexindent/LatexIndent/GetYamlSettings.pm \
|
||||||
|
--replace '$FindBin::RealBin/defaultSettings.yaml' ${src}/scripts/latexindent/defaultSettings.yaml
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Dirty hack to apply perlFlags, but do no build
|
||||||
|
preConfigure = ''
|
||||||
|
touch Makefile.PL
|
||||||
|
'';
|
||||||
|
buildPhase = ":";
|
||||||
|
installPhase = ''
|
||||||
|
install -D ./scripts/latexindent/latexindent.pl "$out"/bin/latexindent
|
||||||
|
mkdir -p "$out"/${perl.libPrefix}
|
||||||
|
cp -r ./scripts/latexindent/LatexIndent "$out"/${perl.libPrefix}/
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user