From 379c152a559f7538cb5ec868dc58a03daf592f05 Mon Sep 17 00:00:00 2001 From: Mehmet Tekman Date: Mon, 10 Oct 2022 17:54:21 +0200 Subject: [PATCH] gnu: Add x11vnc. * gnu/packages/vnc.scm (x11vnc): New variable. --- gnu/packages/vnc.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm index 84c84aec76..017ac6b343 100644 --- a/gnu/packages/vnc.scm +++ b/gnu/packages/vnc.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021, 2022 Tobias Geerinckx-Rice ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Mehmet Tekman ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,10 +25,12 @@ (define-module (gnu packages vnc) #:use-module (guix build-system cmake) + #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix gexp) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages) @@ -511,6 +514,58 @@ (define openjdk #$(this-package-input "openjdk")) ratpoison.") (license license:gpl2+))) +(define-public x11vnc + ;; The release version of 0.9.16 requires patches to work, so we pin to the + ;; latest working commit + (let ((commit "3e4dc8ef2985a6e670e1d9649fe55395c2b31039") + (version "0.9.16") + (revision "1")) + (package + (name "x11vnc") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LibVNC/x11vnc") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0a120gv9h3whiznlddl0j3nz3400jjgl97znaincm5i2m5pnjifs")))) + (build-system gnu-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-before 'bootstrap 'delete-premature-configure + (lambda _ + (substitute* "./autogen.sh" + ((".*/configure") + ""))))))) + (native-inputs (list autoconf automake autobuild pkg-config)) + (inputs (list avahi + libvnc + libx11 + libxcomposite + libxdamage + libxext + libxfixes + libxi + libxinerama + libxrandr + libxtst + openssl + xdpyinfo + zlib + libjpeg-turbo + xf86-video-dummy)) + (synopsis "VNC server for real X displays") + (home-page "https://github.com/LibVNC/x11vnc") + (description + "x11vnc allows one to view remotely and interact with real X +displays (i.e. a display corresponding to a physical monitor, keyboard, and +mouse) with any VNC viewer.") + (license license:gpl2)))) + + (define-public libvnc (package (name "libvnc") -- 2.38.0