summary refs log tree commit diff
path: root/pkgs/tools/admin/tightvnc
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-16 23:04:06 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-16 23:04:06 +0000
commit9f34ef8cf5a309261cd0be1d33db640c0c5ebb78 (patch)
treeb3ffd32db417e2741a02790a1046927068b3e8a5 /pkgs/tools/admin/tightvnc
parentc4c6c2a22430c808b101484da81b4f06114648cd (diff)
downloadnixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar.gz
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar.bz2
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar.lz
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar.xz
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.tar.zst
nixlib-9f34ef8cf5a309261cd0be1d33db640c0c5ebb78.zip
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
Diffstat (limited to 'pkgs/tools/admin/tightvnc')
-rw-r--r--pkgs/tools/admin/tightvnc/builder.sh19
-rw-r--r--pkgs/tools/admin/tightvnc/default.nix4
2 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/tools/admin/tightvnc/builder.sh b/pkgs/tools/admin/tightvnc/builder.sh
index 95a1a6da9b59..05332fb46c26 100644
--- a/pkgs/tools/admin/tightvnc/builder.sh
+++ b/pkgs/tools/admin/tightvnc/builder.sh
@@ -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 
diff --git a/pkgs/tools/admin/tightvnc/default.nix b/pkgs/tools/admin/tightvnc/default.nix
index edc3e7d51e3f..10ed5dc50f22 100644
--- a/pkgs/tools/admin/tightvnc/default.nix
+++ b/pkgs/tools/admin/tightvnc/default.nix
@@ -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];
 }