diff options
Diffstat (limited to 'pkgs/os-specific/linux/qemu-kvm/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/qemu-kvm/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/qemu-kvm/default.nix b/pkgs/os-specific/linux/qemu-kvm/default.nix index 14cedc0b5db9..6c2c8d57fc50 100644 --- a/pkgs/os-specific/linux/qemu-kvm/default.nix +++ b/pkgs/os-specific/linux/qemu-kvm/default.nix @@ -19,7 +19,10 @@ stdenv.mkDerivation rec { ncurses python glib libaio mesa texinfo perl ] ++ stdenv.lib.optionals spiceSupport [ spice_protocol spice ]; - patchPhase = "patchShebangs .;" + stdenv.lib.optionalString spiceSupport '' + patches = [ ./fix-librt-check.patch ]; + + postPatch = "patchShebangs .;" + + 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 |