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.
commitb7871c3f2da1a38bccd839401f6113f734f62e43
authorMilan <me@pbb.lc>
dateMon 25 Jan 2021, 19:24 (6 years ago)
parent7f355dc
pkgs/applications/virtualization/qemu/default.nix+1−1
@@ -143,7 +143,7 @@ stdenv.mkDerivation rec {
143143
144144 postFixup = ''
145145 # the .desktop is both invalid and pointless
146− rm $out/share/applications/qemu.desktop
146+ rm -f $out/share/applications/qemu.desktop
147147
148148 # copy qemu-ga (guest agent) to separate output
149149 mkdir -p $ga/bin