2021-06-10 04:57:09 +02:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, alsa-lib, spice-protocol, glib,
|
2019-11-03 01:10:31 +01:00
|
|
|
libpciaccess, libxcb, libXrandr, libXinerama, libXfixes, dbus, libdrm,
|
2017-05-25 00:33:31 +02:00
|
|
|
systemd}:
|
2015-11-05 12:39:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-17 19:54:21 +02:00
|
|
|
pname = "spice-vdagent";
|
|
|
|
version = "0.21.0";
|
2015-11-05 12:39:55 +01:00
|
|
|
src = fetchurl {
|
2021-04-17 19:54:21 +02:00
|
|
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
|
2015-11-05 12:39:55 +01:00
|
|
|
};
|
2021-05-17 23:50:38 +02:00
|
|
|
|
|
|
|
# FIXME: May no longer be needed with spice-vdagent versions over 0.21.0
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-11-05 12:39:55 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
|
|
|
'';
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-06-10 04:57:09 +02:00
|
|
|
buildInputs = [ alsa-lib spice-protocol glib libdrm
|
2016-09-24 13:44:26 +02:00
|
|
|
libpciaccess libxcb libXrandr libXinerama libXfixes
|
2017-05-25 00:33:31 +02:00
|
|
|
dbus systemd ] ;
|
2015-11-05 12:39:55 +01: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 02:22:02 +01:00
|
|
|
homepage = "https://www.spice-space.org/";
|
2021-04-17 19:54:21 +02:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2021-01-15 06:42:41 +01:00
|
|
|
maintainers = [ lib.maintainers.aboseley ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-11-05 12:39:55 +01:00
|
|
|
};
|
|
|
|
}
|