51 ++ lib.optionals stdenv.hostPlatform.isLinux [
58 stdenv.mkDerivation (finalAttrs: {
62 src = fetchFromGitHub {
63 owner = "quickemu-project";
65 rev = finalAttrs.version;
66 hash = "sha256-VaA39QNZNaomvSBMzJMjYN0KOTwWw2798KE8VnM+1so=";
71 -e '/OVMF_CODE_4M.secboot.fd/s|ovmfs=(|ovmfs=("${OVMFFull.firmware}","${OVMFFull.variables}" |' \
72 -e '/OVMF_CODE_4M.fd/s|ovmfs=(|ovmfs=("${OVMF.firmware}","${OVMF.variables}" |' \
73 -e '/cp "''${VARS_IN}" "''${VARS_OUT}"/a chmod +w "''${VARS_OUT}"' \
74 -e 's/Icon=.*qemu.svg/Icon=qemu/' \
75 -e 's,\[ -x "\$(command -v smbd)" \],true,' \
87 installManPage docs/quickget.1 docs/quickemu.1 docs/quickemu_conf.1
88 install -Dm755 -t "$out/bin" chunkcheck quickemu quickget quickreport windowskey
90 # spice-gtk needs to be put in suffix so that when virtualisation.spiceUSBRedirection
91 # is enabled, the wrapped spice-client-glib-usb-acl-helper is used
92 for f in chunkcheck quickget quickemu quickreport windowskey; do
93 wrapProgram $out/bin/$f \
94 --prefix PATH : "${lib.makeBinPath runtimePaths}" \
95 --suffix PATH : "${lib.makeBinPath [ spice-gtk ]}"
101 passthru.tests = testers.testVersion { package = finalAttrs.finalPackage; };
104 description = "Quickly create and run optimised Windows, macOS and Linux virtual machines";
105 homepage = "https://github.com/quickemu-project/quickemu";
106 changelog = "https://github.com/quickemu-project/quickemu/releases/tag/${finalAttrs.version}";
107 mainProgram = "quickemu";
108 license = lib.licenses.mit;
109 maintainers = with lib.maintainers; [