···11+{ lib
22+, undmg
33+, fetchurl
44+, stdenvNoCC
55+}:
66+77+stdenvNoCC.mkDerivation rec {
88+ pname = "utm";
99+ version = "3.2.4";
1010+1111+ src = fetchurl {
1212+ url = "https://github.com/utmapp/UTM/releases/download/v${version}/UTM.dmg";
1313+ sha256 = "sha256-ejUfL6UHqMusVfaglGlODKtFfKbNwzZ1LmRkcSzieso=";
1414+ };
1515+1616+ nativeBuildInputs = [ undmg ];
1717+1818+ sourceRoot = ".";
1919+ installPhase = ''
2020+ mkdir -p $out/Applications
2121+ cp -r *.app $out/Applications
2222+ '';
2323+2424+ meta = with lib; {
2525+ description = "Full featured system emulator and virtual machine host for iOS and macOS";
2626+ longDescription = ''
2727+ UTM is a full featured system emulator and virtual machine host for iOS
2828+ and macOS. It is based off of QEMU. In short, it allows you to run
2929+ Windows, Linux, and more on your Mac, iPhone, and iPad.
3030+3131+ Features:
3232+ - Full system emulation (MMU, devices, etc) using QEMU
3333+ - 30+ processors supported including x86_64, ARM64, and RISC-V
3434+ - VGA graphics mode using SPICE and QXL
3535+ - Text terminal mode
3636+ - USB devices
3737+ - JIT based acceleration using QEMU TCG
3838+ - Frontend designed from scratch for macOS 11 and iOS 11+ using the
3939+ latest and greatest APIs
4040+ - Create, manage, run VMs directly from your device
4141+ - Hardware accelerated virtualization using Hypervisor.framework and
4242+ QEMU
4343+ - Boot macOS guests with Virtualization.framework on macOS 12+
4444+ '';
4545+ homepage = "https://mac.getutm.app/";
4646+ changelog = "https://github.com/utmapp/${pname}/releases/tag/v${version}";
4747+ mainProgram = "UTM";
4848+ license = licenses.apsl20;
4949+ platforms = platforms.darwin;
5050+ sourceProvenance = with sourceTypes; [ binaryNativeCode ];
5151+ maintainers = with maintainers; [ rrbutani ];
5252+ };
5353+}