···1+{ lib
2+, undmg
3+, fetchurl
4+, stdenvNoCC
5+}:
6+7+stdenvNoCC.mkDerivation rec {
8+ pname = "utm";
9+ version = "3.2.4";
10+11+ src = fetchurl {
12+ url = "https://github.com/utmapp/UTM/releases/download/v${version}/UTM.dmg";
13+ sha256 = "sha256-ejUfL6UHqMusVfaglGlODKtFfKbNwzZ1LmRkcSzieso=";
14+ };
15+16+ nativeBuildInputs = [ undmg ];
17+18+ sourceRoot = ".";
19+ installPhase = ''
20+ mkdir -p $out/Applications
21+ cp -r *.app $out/Applications
22+ '';
23+24+ meta = with lib; {
25+ description = "Full featured system emulator and virtual machine host for iOS and macOS";
26+ longDescription = ''
27+ UTM is a full featured system emulator and virtual machine host for iOS
28+ and macOS. It is based off of QEMU. In short, it allows you to run
29+ Windows, Linux, and more on your Mac, iPhone, and iPad.
30+31+ Features:
32+ - Full system emulation (MMU, devices, etc) using QEMU
33+ - 30+ processors supported including x86_64, ARM64, and RISC-V
34+ - VGA graphics mode using SPICE and QXL
35+ - Text terminal mode
36+ - USB devices
37+ - JIT based acceleration using QEMU TCG
38+ - Frontend designed from scratch for macOS 11 and iOS 11+ using the
39+ latest and greatest APIs
40+ - Create, manage, run VMs directly from your device
41+ - Hardware accelerated virtualization using Hypervisor.framework and
42+ QEMU
43+ - Boot macOS guests with Virtualization.framework on macOS 12+
44+ '';
45+ homepage = "https://mac.getutm.app/";
46+ changelog = "https://github.com/utmapp/${pname}/releases/tag/v${version}";
47+ mainProgram = "UTM";
48+ license = licenses.apsl20;
49+ platforms = platforms.darwin;
50+ sourceProvenance = with sourceTypes; [ binaryNativeCode ];
51+ maintainers = with maintainers; [ rrbutani ];
52+ };
53+}