about summary refs log tree commit diff
path: root/pkgs/tools/X11/x11vnc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/X11/x11vnc/default.nix')
-rw-r--r--pkgs/tools/X11/x11vnc/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/X11/x11vnc/default.nix b/pkgs/tools/X11/x11vnc/default.nix
new file mode 100644
index 000000000000..b8587ed223f2
--- /dev/null
+++ b/pkgs/tools/X11/x11vnc/default.nix
@@ -0,0 +1,27 @@
+args : with args; with builderDefs;
+  let localDefs = builderDefs.passthru.function (rec {
+    src = /* put a fetchurl here */
+    fetchurl {
+      url = mirror://sourceforge/libvncserver/x11vnc-0.9.3.tar.gz;
+      sha256 = "0sfzkbqd2d94w51czci9w5j5z67amcl1gphgg6x77dyr2h46kc0a";
+    };
+
+    buildInputs = [libXfixes fixesproto openssl libXdamage damageproto
+      zlib libX11 xproto libjpeg libXtst libXinerama xineramaproto
+      libXrandr randrproto libXext xextproto inputproto recordproto libXi
+      libXrender renderproto];
+    configureFlags = [];
+  });
+  in with localDefs;
+stdenv.mkDerivation rec {
+  name = "x11vnc-0.9.3";
+  builder = writeScript (name + "-builder")
+    (textClosure localDefs 
+      [doConfigure doMakeInstall doForceShare doPropagate]);
+  meta = {
+    description = "A VNC server connected to a real X11 screen";
+    homepage = "http://www.karlrunge.com/x11vnc/";
+    inherit src;
+  };
+}
+