https://github.com/niklaskorz/nix-bundle-darwin
A darwin-compatible alternative to nix-bundle.
https://github.com/niklaskorz/nix-bundle-darwin
Last synced: 4 months ago
JSON representation
A darwin-compatible alternative to nix-bundle.
- Host: GitHub
- URL: https://github.com/niklaskorz/nix-bundle-darwin
- Owner: niklaskorz
- License: eupl-1.2
- Created: 2024-12-19T10:34:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T16:28:24.000Z (over 1 year ago)
- Last Synced: 2025-02-05T05:41:23.688Z (over 1 year ago)
- Language: Rust
- Homepage: https://codeberg.org/niklaskorz/nix-bundle-darwin
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix-bundle-darwin
A darwin-compatible alternative to [nix-bundle](https://github.com/nix-community/nix-bundle).
## Usage
```
Usage: nix-bundle-darwin [OPTIONS] [INSTALLABLES]... [-- ...]
Arguments:
[INSTALLABLES]... What to bundle. Installables that resolve to derivations are built (or substituted if possible). Store path installables are substituted
[BUILD_ARGS]... Additional arguments to pass to `nix build`
Options:
-f, --file Interpret installables as attribute paths of the Nix expression stored in
-p, --programs Interpret installables as nixpkgs programs, equivalent to `--file `
--force Overwrite existing bundles
-s, --sign Selfsign the resulting application bundles
-h, --help Print help
-V, --version Print version
```
Example: `nix-bundle-darwin nixpkgs#zed-editor`
## Confirmed working
- zed-editor (Rust)
- teeworlds (C, SDL)
- gg-jj (Tauri)
- vscodium (Electron)
## Not yet working
- Anything relying on Nix store paths besides symlinks and shared libraries
## License
EUPL-1.2-or-later
## Differences to [nix-bundle-macos](https://github.com/ariutta/nix-bundle-macos)
- Written in Rust instead of shell scripts
- Does not require `sudo`
- Compatible with flakes
- Shallow copies dependencies from Nix store for smaller bundle size – nix-bundle-macos copies whole store directories based on a nix-store query, resulting in huge bundles
- Unrestricted app location – nix-bundle-macos requires apps to be in `/Applications/`
- Supports codesigning (currently only selfsign)