From 270da328b94caaf6ef5a29fdeecc872f3a25d7da Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Tue, 25 Jun 2013 10:03:00 +0200 Subject: [PATCH] qemu: Enable virtfs This makes it possible to share host directories to qemu guests using 9P. --- pkgs/applications/virtualization/qemu/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index b1165b3535b9..997cc8bd49d6 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, python, zlib, pkgconfig, glib, SDL, ncurses, perl, pixman }: +{ stdenv, fetchurl, python, zlib, pkgconfig, glib, SDL, ncurses, perl, pixman +, attr, libcap }: stdenv.mkDerivation rec { name = "qemu-1.4.0"; @@ -8,10 +9,16 @@ stdenv.mkDerivation rec { sha256 = "1a7d11vjs1p6i1ck2ff9annmkhpkbjl73hl9i1cbg3s0fznrfqh6"; }; - buildInputs = [ python zlib pkgconfig glib SDL ncurses perl pixman ]; + buildInputs = [ + python zlib pkgconfig glib SDL ncurses perl pixman attr libcap + ]; enableParallelBuilding = true; + configureFlags = [ + "--enable-virtfs" + ]; + meta = { description = "QEmu processor emulator"; license = "GPLv2+";