Revert "gnome.gnome-boxes: add qemu to path"
Boxes insert the absolute path of `qemu-system-x86_64` program as found on `PATH` into the `<emulator>` element of the libvirt config. But if we add qemu to `PATH` using a wrapper, the saved path will point directly to a store path, which will break when the store path is garbage collected. Let’s drop it again so that qemu can be picked up from the environment using a more stable path such as `/run/libvirt/nix-emulators/qemu-system-x86_64` introduced by the `virtualisation.libvirtd.enable = true;` NixOS option. This reverts commitba1ecbea39
, essentially re-applying120337053f
. Fixes: https://github.com/NixOS/nixpkgs/issues/57931
This commit is contained in:
parent
1130e29538
commit
7ccc6ab217
@ -49,7 +49,6 @@
|
||||
, vte
|
||||
, glib-networking
|
||||
, qemu-utils
|
||||
, qemu
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -126,7 +125,7 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ mtools cdrkit libcdio qemu-utils qemu ]}")
|
||||
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ mtools cdrkit libcdio qemu-utils ]}")
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user