Making tightvnc use given fonts, instead of depending of an X Font Server started

at the usual unix socket.

svn path=/nixpkgs/trunk/; revision=15624
This commit is contained in:
Lluís Batlle i Rossell 2009-05-16 23:04:06 +00:00
parent c4c6c2a224
commit 9f34ef8cf5
3 changed files with 21 additions and 4 deletions

View File

@ -1,9 +1,22 @@
source $stdenv/setup
patchPhase() {
fontPath=
for i in $fontDirectories; do
for j in $(find $i -name fonts.dir); do
addToSearchPathWithCustomDelimiter "," fontPath $(dirname $j)
done
done
}
buildPhase() {
xmkmf
make World
sed -e 's@/usr/bin/perl@'$perl'/bin/perl@' -i vncserver
sed -e 's@/usr/bin/perl@'$perl'/bin/perl@' \
-e 's@unix/:7100@'$fontPath'@' \
-i vncserver
cd Xvnc
sed -e 's@.* CppCmd .*@#define CppCmd '$gcc'/bin/cpp@' -i config/cf/linux.cf

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, x11, zlib, libjpeg, imake, gccmakedep, libXmu, libXaw, libXpm, libXp , perl, xauth}:
{stdenv, fetchurl, x11, zlib, libjpeg, imake, gccmakedep, libXmu, libXaw, libXpm, libXp , perl, xauth, fontDirectories}:
stdenv.mkDerivation {
name = "tightvnc-1.3.10";
@ -13,6 +13,8 @@ stdenv.mkDerivation {
# for the builder script
inherit xauth;
inherit fontDirectories;
buildInputs = [x11 zlib libjpeg imake gccmakedep libXmu libXaw libXpm libXp
xauth];
}

View File

@ -1364,6 +1364,8 @@ let
tightvnc = import ../tools/admin/tightvnc {
inherit fetchurl stdenv x11 zlib libjpeg perl;
inherit (xlibs) imake gccmakedep libXmu libXaw libXpm libXp xauth;
fontDirectories = [ xorg.fontadobe75dpi xorg.fontmiscmisc xorg.fontcursormisc
xorg.fontbhlucidatypewriter75dpi ];
};
time = import ../tools/misc/time {