mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{lib, stdenv, fetchurl, pkg-config, alsa-lib, spice-protocol, glib,
|
|
libpciaccess, libxcb, libXrandr, libXinerama, libXfixes, dbus, libdrm,
|
|
systemd}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "spice-vdagent";
|
|
version = "0.22.1";
|
|
src = fetchurl {
|
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-k7DRWspHYsx9N5sXmnEBFJ267WK3IRL/+ys+kLEWh6A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
|
'';
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ alsa-lib 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/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ lib.maintainers.aboseley ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|