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:
parent
c4c6c2a224
commit
9f34ef8cf5
@ -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
|
||||
|
||||
xmkmf
|
||||
make World
|
||||
|
||||
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
|
||||
|
@ -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];
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user