2021-01-17 02:09:27 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, alsaLib, spice-protocol, glib,
|
2019-11-03 00:10:31 +00:00
|
|
|
libpciaccess, libxcb, libXrandr, libXinerama, libXfixes, dbus, libdrm,
|
2017-05-24 23:33:31 +01:00
|
|
|
systemd}:
|
2015-11-05 11:39:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-26 01:22:02 +00:00
|
|
|
name = "spice-vdagent-0.20.0";
|
2015-11-05 11:39:55 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.spice-space.org/download/releases/${name}.tar.bz2";
|
2020-03-26 01:22:02 +00:00
|
|
|
sha256 = "0n9k2kna2gd1zi6jv45zsp2jlv439nz5l5jjijirxqaycwi74srf";
|
2015-11-05 11:39:55 +00:00
|
|
|
};
|
2019-11-03 00:10:07 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ];
|
2020-04-23 10:56:52 +01:00
|
|
|
patchFlags = [ "-uNp1" ];
|
|
|
|
# included in the next release.
|
|
|
|
patches = [ ./timeout.diff ];
|
2015-11-05 11:39:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
|
|
|
'';
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-11-03 00:10:31 +00:00
|
|
|
buildInputs = [ alsaLib spice-protocol glib libdrm
|
2016-09-24 12:44:26 +01:00
|
|
|
libpciaccess libxcb libXrandr libXinerama libXfixes
|
2017-05-24 23:33:31 +01:00
|
|
|
dbus systemd ] ;
|
2015-11-05 11:39:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "Enhanced SPICE integration for linux QEMU guest";
|
|
|
|
longDescription = ''
|
|
|
|
Spice agent for linux guests offering
|
|
|
|
* Client mouse mode
|
|
|
|
* Copy and paste
|
|
|
|
* Automatic adjustment of the X-session resolution
|
|
|
|
to the client resolution
|
|
|
|
* Multiple displays
|
|
|
|
'';
|
2020-03-26 01:22:02 +00:00
|
|
|
homepage = "https://www.spice-space.org/";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.aboseley ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-11-05 11:39:55 +00:00
|
|
|
};
|
|
|
|
}
|