matthewbauer / nix-bundle

Bundle Nix derivations to run anywhere!
MIT License
632 stars 46 forks source link

Support macOS #17

Open matthewbauer opened 7 years ago

matthewbauer commented 7 years ago

This will be a meta issue on getting macOS/Darwin/XNU support for nix-bundle. AFAICT no reliable way to chroot exists no macOS for a user. Related links:

ariutta commented 5 years ago

Would you be able to use any ideas from Warp? It "creates self-contained single binary applications ... and is supported on Linux, Windows and macOS".

Edit: Warp doesn't appear to use chroot at all.

matthewbauer commented 5 years ago

@ariutta Yeah we can't really use Warp besides as maybe an alternative to AppImage/self extracting bash.

ariutta commented 5 years ago

Here's a really rough version of something that works for me on macOS Sierra: https://github.com/ariutta/nix-bundle-macos

It created this bundle (warning >200MB): https://www.dropbox.com/s/n5gy0938qels30g/PathVisio-Installer.dmg?dl=0

Thesola10 commented 5 months ago

alternatively I wrote a macOS path redirector for use with Nix: fakedir