@@ -0,0 +1,29 @@
1+{stdenv, fetchurl, pkgconfig, alsaLib, spice_protocol, glib,
2+ libpciaccess, libxcb, libXrandr, libXinerama, libXfixes}:
3+stdenv.mkDerivation rec {
4+ name = "spice-vdagent-0.16.0";
5+ src = fetchurl {
6+ url = "http://www.spice-space.org/download/releases/${name}.tar.bz2";
7+ sha256 = "0z8gwc5va2i64mjippavmxajdb9az83ffqyhlbynm6dxw131d5av";
8+ };
9+ postPatch = ''
10+ substituteInPlace data/spice-vdagent.desktop --replace /usr $out
11+ '';
12+ buildInputs = [ pkgconfig alsaLib spice_protocol glib
13+ libpciaccess libxcb libXrandr libXinerama libXfixes ] ;
14+ meta = {
15+ description = "Enhanced SPICE integration for linux QEMU guest";
16+ longDescription = ''
17+ Spice agent for linux guests offering
18+ * Client mouse mode
19+ * Copy and paste
20+ * Automatic adjustment of the X-session resolution
21+ to the client resolution
22+ * Multiple displays
23+ '';
24+ homepage = http://www.spice-space.org/home.html;
25+ license = stdenv.lib.licenses.gpl3;
26+ maintainers = [ stdenv.lib.maintainers.aboseley ];
27+ platforms = stdenv.lib.platforms.linux;
28+ };
29+}