Merge pull request #10863 from aboseley/spice-vdagent
spice-vdagentd service : init at version 0.16.0
This commit is contained in:
commit
b0f70e2ebb
@ -10,6 +10,7 @@
|
||||
aaronschif = "Aaron Schif <aaronschif@gmail.com>";
|
||||
abaldeau = "Andreas Baldeau <andreas@baldeau.net>";
|
||||
abbradar = "Nikolay Amiantov <ab@fmap.me>";
|
||||
aboseley = "Adam Boseley <adam.boseley@gmail.com>";
|
||||
adev = "Adrien Devresse <adev@adev.name>";
|
||||
aespinosa = "Allan Espinosa <allan.espinosa@outlook.com>";
|
||||
aflatter = "Alexander Flatter <flatter@fastmail.fm>";
|
||||
|
@ -240,6 +240,7 @@
|
||||
./services/misc/ripple-data-api.nix
|
||||
./services/misc/rogue.nix
|
||||
./services/misc/siproxd.nix
|
||||
./services/misc/spice-vdagentd.nix
|
||||
./services/misc/subsonic.nix
|
||||
./services/misc/sundtek.nix
|
||||
./services/misc/svnserve.nix
|
||||
|
30
nixos/modules/services/misc/spice-vdagentd.nix
Normal file
30
nixos/modules/services/misc/spice-vdagentd.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.spice-vdagentd;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.spice-vdagentd = {
|
||||
enable = mkEnableOption "Spice guest vdagent daemon";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.spice-vdagent ];
|
||||
|
||||
systemd.services.spice-vdagentd = {
|
||||
description = "spice-vdagent daemon";
|
||||
wantedBy = [ "graphical.target" ];
|
||||
preStart = ''
|
||||
mkdir -p "/var/run/spice-vdagentd/"
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
ExecStart = "/bin/sh -c '${pkgs.spice-vdagent}/bin/spice-vdagentd'";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
29
pkgs/applications/virtualization/spice-vdagent/default.nix
Normal file
29
pkgs/applications/virtualization/spice-vdagent/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{stdenv, fetchurl, pkgconfig, alsaLib, spice_protocol, glib,
|
||||
libpciaccess, libxcb, libXrandr, libXinerama, libXfixes}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "spice-vdagent-0.16.0";
|
||||
src = fetchurl {
|
||||
url = "http://www.spice-space.org/download/releases/${name}.tar.bz2";
|
||||
sha256 = "0z8gwc5va2i64mjippavmxajdb9az83ffqyhlbynm6dxw131d5av";
|
||||
};
|
||||
postPatch = ''
|
||||
substituteInPlace data/spice-vdagent.desktop --replace /usr $out
|
||||
'';
|
||||
buildInputs = [ pkgconfig alsaLib spice_protocol glib
|
||||
libpciaccess libxcb libXrandr libXinerama libXfixes ] ;
|
||||
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 = http://www.spice-space.org/home.html;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.aboseley ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -13519,6 +13519,8 @@ let
|
||||
|
||||
sound-juicer = callPackage ../applications/audio/sound-juicer { };
|
||||
|
||||
spice-vdagent = callPackage ../applications/virtualization/spice-vdagent { };
|
||||
|
||||
spideroak = callPackage ../applications/networking/spideroak { };
|
||||
|
||||
ssvnc = callPackage ../applications/networking/remote/ssvnc { };
|
||||
|
Loading…
Reference in New Issue
Block a user