From c9e300b4588b5b8b8ee2f39f742631f50df368f7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 20 Apr 2016 23:13:05 +0200 Subject: [PATCH] texlive (old): un-break syntax highlighting in Emacs (cosmetic) --- pkgs/tools/typesetting/tex/texlive/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix index 48a5ae8d6499..6baaf12b8572 100644 --- a/pkgs/tools/typesetting/tex/texlive/default.nix +++ b/pkgs/tools/typesetting/tex/texlive/default.nix @@ -65,7 +65,7 @@ rec { mkdir -p $out/libexec/ mv $out/bin $out/libexec/$(uname -m) mkdir -p $out/bin - for i in "$out/libexec/"* "$out/libexec/"*/* ; do + for i in "$out/libexec/"* "$out/libexec/"*"/"* ; do test \( \! -d "$i" \) -a \( -x "$i" -o -L "$i" \) || continue if [ -x "$i" ]; then @@ -105,7 +105,7 @@ rec { PATH=$PATH:$out/bin mktexlsr $out/share/texmf* '' + stdenv.lib.optionalString stdenv.isDarwin '' - for prog in $out/bin/*; do + for prog in "$out/bin/"*; do wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${poppler.out}/lib" done '' ) [ "minInit" "defEnsureDir" "doUnpack" "doMakeInstall" "promoteLibexec" "patchShebangsInterim"];