qemu-kvm: add (optional) spice support
This commit is contained in:
parent
cb4443ef26
commit
fadaad6f89
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, attr, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid, vde2
|
{ stdenv, fetchurl, attr, zlib, SDL, alsaLib, pkgconfig, pciutils, libuuid, vde2
|
||||||
, libjpeg, libpng, ncurses, python, glib, libaio, mesa }:
|
, libjpeg, libpng, ncurses, python, glib, libaio, mesa
|
||||||
|
, spice, spiceProtocol, spiceSupport ? false }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
@ -23,19 +24,24 @@ stdenv.mkDerivation rec {
|
|||||||
s|/usr/bin/python|${python}/bin/python|g ;
|
s|/usr/bin/python|${python}/bin/python|g ;
|
||||||
s|/bin/rm|rm|g'
|
s|/bin/rm|rm|g'
|
||||||
done
|
done
|
||||||
|
'' + stdenv.lib.optionalString spiceSupport ''
|
||||||
|
for i in configure spice-qemu-char.c ui/spice-input.c ui/spice-core.c ui/qemu-spice.h
|
||||||
|
do
|
||||||
|
substituteInPlace $i --replace '#include <spice.h>' '#include <spice/spice.h>'
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--audio-drv-list=alsa"
|
[ "--audio-drv-list=alsa"
|
||||||
"--smbd=smbd" # use `smbd' from $PATH
|
"--smbd=smbd" # use `smbd' from $PATH
|
||||||
];
|
] ++ stdenv.lib.optional spiceSupport "--enable-spice";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng
|
[ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng
|
||||||
ncurses python glib libaio mesa
|
ncurses python glib libaio mesa
|
||||||
];
|
] ++ stdenv.lib.optionals spiceSupport [ spiceProtocol spice ];
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user