qemu-kvm: enable documentation build
... and rename the 'postPatch' hook to 'patchPhase'.
This commit is contained in:
parent
ad76386ff7
commit
d336909d9f
@ -1,5 +1,5 @@
|
|||||||
{ 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, perl, texinfo
|
||||||
, spice, spice_protocol, spiceSupport ? false }:
|
, spice, spice_protocol, spiceSupport ? false }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
@ -14,7 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "018vb5nmk2fsm143bs2bl2wirhasd4b10d7jchl32zik4inbk2p9";
|
sha256 = "018vb5nmk2fsm143bs2bl2wirhasd4b10d7jchl32zik4inbk2p9";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch =
|
buildInputs =
|
||||||
|
[ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng
|
||||||
|
ncurses python glib libaio mesa texinfo perl
|
||||||
|
] ++ stdenv.lib.optionals spiceSupport [ spice_protocol spice ];
|
||||||
|
|
||||||
|
patchPhase =
|
||||||
'' for i in $(find . -type f)
|
'' for i in $(find . -type f)
|
||||||
do
|
do
|
||||||
sed -i "$i" \
|
sed -i "$i" \
|
||||||
@ -32,15 +37,9 @@ stdenv.mkDerivation rec {
|
|||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--audio-drv-list=alsa"
|
[ "--audio-drv-list=alsa"
|
||||||
"--smbd=smbd" # use `smbd' from $PATH
|
"--smbd=smbd" # use `smbd' from $PATH
|
||||||
|
"--enable-docs"
|
||||||
] ++ stdenv.lib.optional spiceSupport "--enable-spice";
|
] ++ stdenv.lib.optional spiceSupport "--enable-spice";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
buildInputs =
|
|
||||||
[ attr zlib SDL alsaLib pkgconfig pciutils libuuid vde2 libjpeg libpng
|
|
||||||
ncurses python glib libaio mesa
|
|
||||||
] ++ stdenv.lib.optionals spiceSupport [ spice_protocol spice ];
|
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
# Libvirt expects us to be called `qemu-kvm'. Otherwise it will
|
# Libvirt expects us to be called `qemu-kvm'. Otherwise it will
|
||||||
@ -49,6 +48,8 @@ stdenv.mkDerivation rec {
|
|||||||
ln -sv $(cd $out/bin && echo qemu-system-*) $out/bin/qemu-kvm
|
ln -sv $(cd $out/bin && echo qemu-system-*) $out/bin/qemu-kvm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.linux-kvm.org/;
|
homepage = http://www.linux-kvm.org/;
|
||||||
description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions";
|
description = "A full virtualization solution for Linux on x86 hardware containing virtualization extensions";
|
||||||
|
Loading…
Reference in New Issue
Block a user