From e74ae54da58655d9a348e4324dcffaa7d831dbe3 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 3 Feb 2021 20:07:13 +0100 Subject: [PATCH] qemu: guard desktop file removal The qemu.desktop file should only be attempted to be removed if available. --- pkgs/applications/virtualization/qemu/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index d83c6d350e2e..8f6b1ed9a922 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -143,7 +143,7 @@ stdenv.mkDerivation rec { postFixup = '' # the .desktop is both invalid and pointless - rm -f $out/share/applications/qemu.desktop + test -e $out/share/applications/qemu.desktop && rm -f $out/share/applications/qemu.desktop # copy qemu-ga (guest agent) to separate output mkdir -p $ga/bin