forked from mirrors/nixpkgs
qemu: add separate output for qemu-ga guest agent
This commit is contained in:
parent
cd5dfa1f88
commit
5be6943696
|
@ -67,6 +67,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
outputs = [ "out" "ga" ];
|
||||||
|
|
||||||
patches = [ ./no-etc-install.patch ./statfs-flags.patch (fetchpatch {
|
patches = [ ./no-etc-install.patch ./statfs-flags.patch (fetchpatch {
|
||||||
name = "glibc-2.27-memfd.patch";
|
name = "glibc-2.27-memfd.patch";
|
||||||
url = "https://git.qemu.org/?p=qemu.git;a=patch;h=75e5b70e6b5dcc4f2219992d7cffa462aa406af0";
|
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
|
for exe in $out/bin/qemu-system-* ; do
|
||||||
paxmark m $exe
|
paxmark m $exe
|
||||||
done
|
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.
|
# Add a ‘qemu-kvm’ wrapper for compatibility/convenience.
|
||||||
|
|
Loading…
Reference in a new issue