2008-04-28 02:25:42 +02:00
|
|
|
args: with args;
|
|
|
|
rec {
|
2010-02-11 10:45:07 +01:00
|
|
|
name = "context-2009.11.26";
|
2008-04-28 02:25:42 +02:00
|
|
|
src = fetchurl {
|
2010-02-11 10:45:07 +01:00
|
|
|
url = mirror://debian/pool/main/c/context/context_2009.11.26.orig.tar.gz;
|
|
|
|
sha256 = "1qv3h97cyhjyvivs30fz9bqr77j348azagm7ijiyfrclvjjlwav9";
|
2008-04-28 02:25:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [texLive];
|
|
|
|
phaseNames = ["doCopy"];
|
2009-05-20 01:25:58 +02:00
|
|
|
doCopy = fullDepEntry (''
|
2010-02-21 11:31:21 +01:00
|
|
|
ensureDir $out/share/
|
|
|
|
|
|
|
|
ensureDir $out/texmf
|
|
|
|
cp -r * $out/texmf
|
|
|
|
|
|
|
|
ln -s $out/texmf* $out/share/
|
2010-02-23 11:52:19 +01:00
|
|
|
|
|
|
|
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
|
2008-04-28 02:25:42 +02:00
|
|
|
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
|
|
|
|
|
2010-02-23 11:52:19 +01:00
|
|
|
|
|
|
|
|
2008-04-28 02:25:42 +02:00
|
|
|
meta = {
|
|
|
|
description = "ConTEXt TeX wrapper";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|