|
1 |
| -{ stdenv, fetchFromGitHub, xorg |
2 |
| -, autoconf, automake, cvs, libtool, nasm, pixman, xkeyboard_config |
3 |
| -, fontDirectories, libgcrypt, gnutls, pam, flex, bison, gettext |
4 |
| -, cmake, libjpeg_turbo, fltk, nettle, libiconv, libtasn1 |
5 |
| -}: |
| 1 | +{ stdenv, fetchFromGitHub |
| 2 | +, xorg, xkeyboard_config, zlib |
| 3 | +, libjpeg_turbo, pixman, fltk |
| 4 | +, fontDirectories |
| 5 | +, cmake, gettext, libtool |
| 6 | +, glproto, mesa_glu |
| 7 | +, gnutls, pam, nettle |
| 8 | +, xterm }: |
6 | 9 |
|
7 | 10 | with stdenv.lib;
|
8 | 11 |
|
9 | 12 | stdenv.mkDerivation rec {
|
10 |
| - version = "1.8.0pre20170211"; |
| 13 | + version = "1.8.0pre20170419"; |
11 | 14 | name = "tigervnc-${version}";
|
12 | 15 |
|
13 | 16 | src = fetchFromGitHub {
|
14 | 17 | owner = "TigerVNC";
|
15 | 18 | repo = "tigervnc";
|
16 |
| - sha256 = "10bs6394ya953gmak8g2d3n133vyfrryq9zq6dc27g8s6lw0mrbh"; |
17 |
| - rev = "b6c46a1a99a402d5d17b1afafc4784ce0958d6ec"; |
| 19 | + sha256 = "1y3fn7dwlkm7ilqn8bwyqj3bw7s7clnv7d4jml4wyvfihzz9j90b"; |
| 20 | + rev = "v1.7.90"; |
18 | 21 | };
|
19 | 22 |
|
20 | 23 | inherit fontDirectories;
|
21 | 24 |
|
22 | 25 | patchPhase = ''
|
23 |
| - sed -i -e 's,$(includedir)/pixman-1,${if stdenv ? cross then pixman.crossDrv else pixman}/include/pixman-1,' unix/xserver/hw/vnc/Makefile.am |
24 |
| - sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${if stdenv ? cross then xkeyboard_config.crossDrv else xkeyboard_config}/etc/X11/xkb";' unix/vncserver |
| 26 | + sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${xkeyboard_config}/etc/X11/xkb";' unix/vncserver |
25 | 27 | fontPath=
|
26 | 28 | for i in $fontDirectories; do
|
27 | 29 | for j in $(find $i -name fonts.dir); do
|
@@ -67,27 +69,23 @@ stdenv.mkDerivation rec {
|
67 | 69 | make TIGERVNC_SRCDIR=`pwd`/../.. install
|
68 | 70 | popd
|
69 | 71 | rm -f $out/lib/xorg/protocol.txt
|
70 |
| - ''; |
71 | 72 |
|
72 |
| - crossAttrs = { |
73 |
| - buildInputs = (map (x : x.crossDrv) (buildInputs ++ [ |
74 |
| - xorg.fixesproto xorg.damageproto xorg.xcmiscproto xorg.bigreqsproto xorg.randrproto xorg.renderproto |
75 |
| - xorg.fontsproto xorg.videoproto xorg.compositeproto xorg.scrnsaverproto xorg.resourceproto |
76 |
| - xorg.libxkbfile xorg.libXfont xorg.libpciaccess xorg.xineramaproto |
77 |
| - ])); |
78 |
| - }; |
| 73 | + wrapProgram $out/bin/vncserver \ |
| 74 | + --prefix PATH : ${stdenv.lib.makeBinPath (with xorg; [ xterm twm xsetroot ]) } |
| 75 | + ''; |
79 | 76 |
|
80 |
| - buildInputs = |
81 |
| - [ xorg.libX11 xorg.libXext gettext xorg.libICE xorg.libXtst xorg.libXi xorg.libSM xorg.libXft |
82 |
| - nasm libgcrypt gnutls pam pixman libjpeg_turbo fltk xorg.xineramaproto |
83 |
| - xorg.libXinerama xorg.libXcursor nettle libiconv libtasn1 |
84 |
| - ]; |
| 77 | + buildInputs = with xorg; [ |
| 78 | + libjpeg_turbo fltk pixman |
| 79 | + gnutls pam nettle |
| 80 | + fixesproto damageproto compositeproto randrproto |
| 81 | + xcmiscproto bigreqsproto randrproto renderproto |
| 82 | + fontsproto videoproto scrnsaverproto resourceproto presentproto |
| 83 | + utilmacros libXtst libXext libX11 libXext libICE libXi libSM libXft |
| 84 | + libxkbfile libXfont2 libpciaccess xineramaproto |
| 85 | + glproto mesa_glu |
| 86 | + ] ++ xorgserver.buildInputs; |
85 | 87 |
|
86 |
| - nativeBuildInputs = |
87 |
| - [ autoconf automake cvs xorg.utilmacros xorg.fontutil libtool flex bison |
88 |
| - cmake gettext |
89 |
| - ] |
90 |
| - ++ xorg.xorgserver.nativeBuildInputs; |
| 88 | + nativeBuildInputs = [ cmake zlib gettext libtool ] ++ xorg.xorgserver.nativeBuildInputs; |
91 | 89 |
|
92 | 90 | propagatedNativeBuildInputs = xorg.xorgserver.propagatedNativeBuildInputs;
|
93 | 91 |
|
|
0 commit comments