summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-04-20 11:05:50 +0200
committerxeji <xeji@cat3.de>2018-04-20 11:05:50 +0200
commit5be6943696ab515c85bec82870a15766a2b4afdd (patch)
tree3e25b1a045d9d178decfbedef2333847c80b98eb /pkgs
parentcd5dfa1f883c9e7183e493f4dc35cbe624082676 (diff)
downloadnixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar.gz
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar.bz2
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar.lz
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar.xz
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.tar.zst
nixlib-5be6943696ab515c85bec82870a15766a2b4afdd.zip
qemu: add separate output for qemu-ga guest agent
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/virtualization/qemu/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix
index 7b246df01a93..f5cd661fbecb 100644
--- a/pkgs/applications/virtualization/qemu/default.nix
+++ b/pkgs/applications/virtualization/qemu/default.nix
@@ -67,6 +67,8 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
+  outputs = [ "out" "ga" ];
+
   patches = [ ./no-etc-install.patch ./statfs-flags.patch (fetchpatch {
     name = "glibc-2.27-memfd.patch";
     url = "https://git.qemu.org/?p=qemu.git;a=patch;h=75e5b70e6b5dcc4f2219992d7cffa462aa406af0";
@@ -122,6 +124,9 @@ stdenv.mkDerivation rec {
       for exe in $out/bin/qemu-system-* ; do
         paxmark m $exe
       done
+      # copy qemu-ga (guest agent) to separate output
+      mkdir -p $ga/bin
+      cp $out/bin/qemu-ga $ga/bin/
     '';
 
   # Add a ‘qemu-kvm’ wrapper for compatibility/convenience.