mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Making the tigervnc server work.
svn path=/nixpkgs/trunk/; revision=22584
This commit is contained in:
parent
97ab4c05b2
commit
4301f209c9
@ -1,5 +1,6 @@
|
||||
{stdenv, fetchsvn, libX11, libXext, gettext, libICE, libXtst, libXi, libSM, xorgserver,
|
||||
autoconf, automake, cvs, libtool, nasm, utilmacros, pixman }:
|
||||
autoconf, automake, cvs, libtool, nasm, utilmacros, pixman, xkbcomp, xkeyboard_config,
|
||||
fontDirectories }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
@ -17,8 +18,21 @@ stdenv.mkDerivation {
|
||||
|
||||
configureFlags = "--enable-nls";
|
||||
|
||||
inherit fontDirectories;
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e 's,$(includedir)/pixman-1,${pixman}/include/pixman-1,' unix/xserver/hw/vnc/Makefile.am
|
||||
sed -i -e '/^$pidFile/a$ENV{XKB_BINDIR}="${xkbcomp}/bin";' unix/vncserver
|
||||
sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${xkeyboard_config}/etc/X11/xkb";' unix/vncserver
|
||||
|
||||
fontPath=
|
||||
for i in $fontDirectories; do
|
||||
for j in $(find $i -name fonts.dir); do
|
||||
addToSearchPathWithCustomDelimiter "," fontPath $(dirname $j)
|
||||
done
|
||||
done
|
||||
|
||||
sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -fp '"$fontPath"'";' unix/vncserver
|
||||
'';
|
||||
|
||||
# I don't know why I can't use in the script
|
||||
|
@ -1821,8 +1821,10 @@ let
|
||||
};
|
||||
|
||||
tigervnc = import ../tools/admin/tigervnc {
|
||||
inherit fetchsvn stdenv gettext autoconf automake cvs libtool nasm;
|
||||
inherit (xorg) libX11 libXext libICE libXtst libXi libSM xorgserver utilmacros pixman;
|
||||
inherit fetchsvn stdenv gettext autoconf automake cvs libtool nasm xkeyboard_config;
|
||||
inherit (xorg) libX11 libXext libICE libXtst libXi libSM xorgserver utilmacros pixman xkbcomp;
|
||||
fontDirectories = [ xorg.fontadobe75dpi xorg.fontmiscmisc xorg.fontcursormisc
|
||||
xorg.fontbhlucidatypewriter75dpi ];
|
||||
};
|
||||
|
||||
tightvnc = import ../tools/admin/tightvnc {
|
||||
|
Loading…
Reference in New Issue
Block a user