GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing wiki.nixos.org — Appimage - Official NixOS Wiki AppImage is a monolithic packaging format for linux applications. It contains all dependencies in one file that is composed of an executable with a tacked on filesystem. UsageRunOn most distros, all one has to do is download the $ nix-shell -p appimage-run $ appimage-run path/to/application.AppImage Appimage apps cannot access host fonts, icons and themesAdditional PackagesSome appimages still have issues, so you can override for additional pkgs such as programs.appimage.enable = true; programs.appimage.binfmt = true; programs.appimage.package = pkgs.appimage-run.override { extraPkgs = pkgs: [ # note that these are just examples and pytorch (a machine learning framework) # triggers a ~3 GiB download as of 2026-11-08 # Most programs will not need these packages. pkgs.icu pkgs.libxcrypt-legacy pkgs.python312 pkgs.python312Packages.torch ]; };
PackagingSee the nixpkgs manual on wrapping AppImage packages. In short, the AppImage is extracted and any dependencies are added as Nix build dependencies. Following example is a derivation for the program Quba, which is also distributed as AppImage. { lib, appimageTools, fetchurl, }: let version = "1.4.0"; pname = "quba"; src = fetchurl { url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}.AppImage"; hash = "sha256-EsTF7W1np5qbQQh3pdqsFe32olvGK3AowGWjqHPEfoM="; }; appimageContents = appimageTools.extractType1 { inherit name src; }; in appimageTools.wrapType2 rec { inherit pname version src; extraInstallCommands = '' substituteInPlace $out/share/applications/${pname}.desktop \ --replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram}' ''; meta = { description = "Viewer for electronic invoices"; homepage = "https://github.com/ZUGFeRD/quba-viewer"; downloadPage = "https://github.com/ZUGFeRD/quba-viewer/releases"; license = lib.licenses.asl20; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; maintainers = with lib.maintainers; [ onny ]; platforms = [ "x86_64-linux" ]; }; }
ConfigurationRegister AppImage files as a binary type to binfmt_miscYou can tell the Linux kernel to use an interpreter (e.g. programs.appimage = { enable = true; binfmt = true; }; This way AppImage files can be invoked directly as if they were normal programs. Retrieved from "https://wiki.nixos.org/w/index.php?title=Appimage&oldid=35382" |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |