1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, directfb, zlib, libjpeg, xorgproto }:
2
3stdenv.mkDerivation {
4 pname = "directvnc";
5 version = "0.7.7.2015-04-16";
6
7 src = fetchFromGitHub {
8 owner = "drinkmilk";
9 repo = "directvnc";
10 rev = "d336f586c5865da68873960092b7b5fbc9f8617a";
11 sha256 = "16x7mr7x728qw7nbi6rqhrwsy73zsbpiz8pbgfzfl2aqhfdiz88b";
12 };
13
14 patches = [
15 # Pull fix pending upstream inclusion for -fno-common toolchain
16 # support:
17 # https://github.com/drinkmilk/directvnc/pull/7
18 (fetchpatch {
19 name = "fno-common.patch";
20 url = "https://github.com/drinkmilk/directvnc/commit/e9c23d049bcf31d0097348d44391fe5fd9aad12b.patch";
21 sha256 = "1dnzr0dnx20w80r73j4a9n6mhbazjzlr5ps9xjj898924cg140zx";
22 })
23 ];
24
25 nativeBuildInputs = [ autoreconfHook pkg-config ];
26
27 buildInputs = [ directfb zlib libjpeg xorgproto ];
28
29 meta = with lib; {
30 description = "DirectFB VNC client";
31 homepage = "http://drinkmilk.github.io/directvnc/";
32 license = licenses.gpl2Plus;
33 maintainers = [ maintainers.raskin ];
34 platforms = platforms.linux;
35 };
36}