@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig
2+, xorg, gtk2, spice, spice-protocol
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "x11spice";
7+ version = "2019-08-20";
8+
9+ src = fetchFromGitLab {
10+ domain = "gitlab.freedesktop.org";
11+ owner = "spice";
12+ repo = "x11spice";
13+ rev = "51d2a8ba3813469264959bb3ba2fc6fe08097be6";
14+ sha256 = "0va5ix14vnqch59gq8wvrhw6q0w0n27sy70xx5kvfj2cl0h1xpg8";
15+ };
16+
17+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
18+
19+ buildInputs = [
20+ xorg.libxcb xorg.xcbutil xorg.utilmacros
21+ gtk2 spice spice-protocol
22+ ];
23+
24+ NIX_LDFLAGS = "-lpthread";
25+
26+ meta = with stdenv.lib; {
27+ description = ''
28+ x11spice will enable a running X11 desktop to be available
29+ via a Spice server
30+ '';
31+ homepage = https://gitlab.freedesktop.org/spice/x11spice;
32+ platforms = platforms.linux;
33+ license = licenses.gpl3;
34+ maintainers = with maintainers; [ rnhmjoj ];
35+ };
36+}