summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization
diff options
context:
space:
mode:
authorMilan <me@pbb.lc>2021-01-25 19:24:32 +0100
committerGitHub <noreply@github.com>2021-01-25 19:24:32 +0100
commitb7871c3f2da1a38bccd839401f6113f734f62e43 (patch)
tree4460e97160c67a4fb4a892031e77b11b83209fd7 /pkgs/applications/virtualization
parent7f355dcc4ee4beb9f3ba6a4bd9a3f353069fe58d (diff)
qemu: fix build when desktop file does not exist (#110721)
The qemu-user variants as used by binfmt emulation through `(lib.systems.elaborate lib.systems.examples.aarch64-multiplatform).emulator pkgs` does not install a .desktop file since qemu 5.2.0. This change allows the build to continue if deletion of the desktop file fails.
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r--pkgs/applications/virtualization/qemu/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix
index 61ebe2ceec75..d83c6d350e2e 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 $out/share/applications/qemu.desktop
+ rm -f $out/share/applications/qemu.desktop
# copy qemu-ga (guest agent) to separate output
mkdir -p $ga/bin