on master help sign in
Fixup readme
commit6a7e55bba4593f0e16c000ab6ecd013b73c1efd5 authorMatthew Bauer <mjbauer95@gmail.com> dateMon 6 Feb 2017, 18:19 (10 years ago) parent1eb0583
1 file changed+20−8
README.md+20−8
README.md+20−8
@@ -52,33 +52,45 @@ Some others to try:
5252./nix2appimage.sh emacs
5353```
5454
55+This will create a file at Emacs-x86_64.AppImage which you can execute.
56+
5557Notice that there is only one argument for nix2appimage.sh. This is because the target executable will be detected from the .desktop file in ```/share/applications/*.desktop```. As a side-effect, AppImage requires your package to have a .desktop file, so packages like "hello", "coreutils", etc. will not work.
5658
5759Some other examples to try:
5860
5961```sh
6062./nix2appimage.sh firefox
63+```
64+
65+```sh
6166./nix2appimage.sh vlc
62−./nix2appimage.sh allegro
67+```
68+
69+```sh
70+./nix2appimage.sh 0ad
71+```
72+
73+```sh
74+./nix2appimage.sh wireshark-gtk
6375```
6476
6577These may take a while because of the large closure size.
6678
6779## Comparison with AppImage, FlatPak, Snappy
6880
69−| Name | Distro-agnostic | Runtime required | Root required | Storage | Packaged size of vlc |
70−| ---------- | --------------- | ---------------- | ------------- | ------- | -------------------- |
71−| nix-bundle | yes | no | no | Arx tarball | 176M |
72−| AppImage | yes | no | no | Squashfs w/ lzma compression | 80M |
73−| FlatPak | yes | yes | no | ? | ? |
74−| Snappy | yes | yes | no | squashFS | 115M |
81+| Name | Distro-agnostic | Runtime required | Root required | Storage |
82+| ---------- | --------------- | ---------------- | ------------- | ------- |
83+| nix-bundle | yes | no | no | Arx tarball |
84+| AppImage | yes | no | no | Squashfs w/ lzma compression |
85+| FlatPak | yes | yes | no | ? |
86+| Snappy | yes | yes | no | squashFS |
7587
7688## How it works
7789
7890Nix-bundle glues together four different projects to work correctly:
7991
8092* [Arx](https://github.com/solidsnack/arx) - an archive execution tool
81− * Creates single-file archive executable that can unpack themselves and then run some command. nix-bundle calls nix-user-chroot to bootstrap the Nix environment. It outputs a "./nix" folder.
93+* Creates single-file archive executable that can unpack themselves and then run some command. nix-bundle calls nix-user-chroot to bootstrap the Nix environment. It outputs a "./nix" folder.
8294* [nix-user-chroot](https://github.com/lethalman/nix-user-chroot) - a small bootstrap that uses Linux namespaces to call chroot
8395 * This will create sub namespace and bind mount the "./nix" to "/nix" so that the Nix references function properly.
8496* [Nix](https://nixos.org/nix/) - a functional package manager