2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, alsaLib, spice-protocol, glib,
|
2020-04-24 23:36:52 +00:00
|
|
|
libpciaccess, libxcb, libXrandr, libXinerama, libXfixes, dbus, libdrm,
|
|
|
|
systemd}:
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-22 02:08:21 +00:00
|
|
|
pname = "spice-vdagent";
|
|
|
|
version = "0.21.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-04-22 02:08:21 +00:00
|
|
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ alsaLib spice-protocol glib libdrm
|
|
|
|
libpciaccess libxcb libXrandr libXinerama libXfixes
|
|
|
|
dbus systemd ] ;
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
homepage = "https://www.spice-space.org/";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ lib.maintainers.aboseley ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|