Skip to content

Commit b2ab964

Browse files
committed
revamp appimage functionality
1 parent 8e39653 commit b2ab964

21 files changed

+3911
-517
lines changed

AppRun.c

Lines changed: 0 additions & 280 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ NIX_PATH="nixpkgs=https://github.com/matthewbauer/nixpkgs/archive/nix-bundle.tar
7474

7575
This will create a file at Emacs-x86_64.AppImage which you can execute.
7676

77-
Notice 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.
77+
Notice 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```. If there is no .desktop file, nix2appimage will attempt to create one. If, however, there are more than one executable in the bin/ directory, we can't pick one, and there will have to be a .desktop file.
7878

7979
Some other examples to try:
8080

@@ -96,7 +96,9 @@ Some other examples to try:
9696

9797
These may take a while because of the large closure size.
9898

99-
Note that these do not currently work out of the box with NixOS. Other Linux distros should work.
99+
Note that these do not currently work out of the box with NixOS (but can be run through the `appimage-run` command). Other Linux distros should work. An additional limitation is that the machine running the AppImage must have a glibc at least as new as the one used to compile, so it is usually a good idea to pull an old version of glibc for your compilation.
100+
101+
If you are using flakes, nix-bundle exports the overlay `nix-bundle.overlays.glibc_2_24.${system}` for this purpose, which will pull in glibc 2.24, and will thus be compatible with almost every popular distro's supported releases. Be forewarned that this has to rebuild pretty much everything in nixpkgs and takes a *long* time. Also note that some packages (e.g. Firefox) do their own glibc versioning, and so don't need this; better to test your package on an old distro without this overlay first.
100102

101103
## Comparison with AppImage, FlatPak, Snappy
102104

appdir.nix

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)