Skip to content

Commit

Permalink
qemu: drop invalid and redundant qemu.desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Jul 22, 2020
1 parent 5717d9d commit cde6761
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pkgs/applications/virtualization/qemu/default.nix
Expand Up @@ -133,15 +133,18 @@ stdenv.mkDerivation rec {
dontWrapGApps = true;

postFixup = ''
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin
cp $out/bin/qemu-ga $ga/bin/
'' + optionalString gtkSupport ''
# wrap GTK Binaries
for f in $out/bin/qemu-system-*; do
wrapGApp $f
done
'';
# the .desktop is both invalid and pointless
rm $out/share/applications/qemu.desktop
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin
cp $out/bin/qemu-ga $ga/bin/
'' + optionalString gtkSupport ''
# wrap GTK Binaries
for f in $out/bin/qemu-system-*; do
wrapGApp $f
done
'';

# Add a ‘qemu-kvm’ wrapper for compatibility/convenience.
postInstall = ''
Expand Down

0 comments on commit cde6761

Please sign in to comment.