Darling lets many macOS command-line tools and packages run on Linux without a full macOS virtual machine, using a Mach-O loader and Darwin-compatible libraries.
Overview
Darling is a runtime that recreates enough of the Darwin and macOS environment on Linux to execute Mach-O binaries natively. A userspace server implements Mach IPC, POSIX, and Darwin syscalls on top of Linux, while reimplemented or ported frameworks cover Foundation, CoreFoundation, CoreAudio, and a growing AppKit stack derived in part from Cocotron and other community code. Low-level pieces draw on Apple open-source releases where applicable.
Users work inside darling shell, which presents a macOS-like prefix filesystem similar in spirit to WINEPREFIX. Default prefix location can be overridden with an environment variable. Prefixes use overlayfs and cannot live on NFS or eCryptfs, which affects encrypted home directories on some setups. CLI tooling already runs; graphical application support is experimental with ongoing AppKit and Metal-via-Vulkan work.
Package workflows include installer for .pkg files, hdiutil for disk images, unxip for Xcode archives, and darling open to bridge files from the Linux desktop into Darling. Distribution packages exist under official releases, with additional community packages documented separately.
The project compares itself to Wine: where Wine targets Windows binaries, Darling targets macOS software. It states it uses only Darwin components Apple has released as free software, and aims to integrate running applications into the Linux desktop where possible.
Key features
- Mach-O binary loader on Linux
- darlingserver Darwin syscall emulation
- DPREFIX isolated macOS-like filesystem
- PKG installation via installer tool
- DMG attach with hdiutil
- darling shell interactive environment
- Desktop open helper for host files
- XIP extraction for Xcode bundles
Use cases
- Run macOS CLI tools on Linux
- Install .pkg software without macOS VM
- Develop against Darwin APIs on Linux
- Experiment with simple macOS GUI apps