3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/spice-vdagent/default.nix

38 lines
1.3 KiB
Nix
Raw Normal View History

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