Fixing some mistakes in TeXLive expressions. Context still does not work, but in a more complicated way
svn path=/nixpkgs/trunk/; revision=20186
This commit is contained in:
parent
26c4567797
commit
17c0e537e3
@ -7,6 +7,8 @@ rec {
|
|||||||
|
|
||||||
doAggregate = fullDepEntry (''
|
doAggregate = fullDepEntry (''
|
||||||
|
|
||||||
|
ensureDir $out/libexec
|
||||||
|
|
||||||
for currentPath in ${lib.concatStringsSep " " buildInputs}; do
|
for currentPath in ${lib.concatStringsSep " " buildInputs}; do
|
||||||
echo Symlinking "$currentPath"
|
echo Symlinking "$currentPath"
|
||||||
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*) ! -type d | while read; do
|
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*) ! -type d | while read; do
|
||||||
@ -17,7 +19,18 @@ rec {
|
|||||||
done | while read; do head -n 99 >/dev/null; echo -n .; done
|
done | while read; do head -n 99 >/dev/null; echo -n .; done
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cp -Trfp $currentPath/libexec $out/libexec || true
|
find "$currentPath/libexec" -type d | while read; do
|
||||||
|
REPLY="''${REPLY#$currentPath}"
|
||||||
|
ensureDir $out/"$REPLY"
|
||||||
|
done
|
||||||
|
find "$currentPath/libexec" -type f | while read; do
|
||||||
|
REPLY="''${REPLY#$currentPath}"
|
||||||
|
ln -s "$currentPath"/"$REPLY" $out/"$REPLY"
|
||||||
|
done
|
||||||
|
find "$currentPath/libexec" -type l | while read; do
|
||||||
|
REPLY="''${REPLY#$currentPath}"
|
||||||
|
ln -s "$currentPath"/"$REPLY" $out/"$REPLY"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
ln -s $out/texmf* $out/share/
|
ln -s $out/texmf* $out/share/
|
||||||
@ -30,8 +43,10 @@ rec {
|
|||||||
|
|
||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
for i in $out/libexec/*/*; do
|
for i in $out/libexec/*/*; do
|
||||||
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i)
|
if [ -x $(readlink -f $i) ]; then
|
||||||
chmod a+x $out/bin/$(basename $i)
|
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i)
|
||||||
|
chmod a+x $out/bin/$(basename $i)
|
||||||
|
fi;
|
||||||
done
|
done
|
||||||
|
|
||||||
rm $out/texmf*/ls-R
|
rm $out/texmf*/ls-R
|
||||||
|
@ -15,8 +15,19 @@ rec {
|
|||||||
cp -r * $out/texmf
|
cp -r * $out/texmf
|
||||||
|
|
||||||
ln -s $out/texmf* $out/share/
|
ln -s $out/texmf* $out/share/
|
||||||
|
|
||||||
|
sysName=$(ls -d ${args.texLive}/libexec/*/ | head -1)
|
||||||
|
sysName=''${sysName%%/}
|
||||||
|
sysName=''${sysName##*/}
|
||||||
|
|
||||||
|
ensureDir $out/libexec/$sysName
|
||||||
|
for i in $out/texmf/scripts/*/*/*; do
|
||||||
|
ln -s $i $out/libexec/$sysName/$(basename $i)
|
||||||
|
done
|
||||||
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
|
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "ConTEXt TeX wrapper";
|
description = "ConTEXt TeX wrapper";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user