Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By SergioRiberav0.1.0MITIn 1 marketplace
Turns a pre-built Nix derivation into native installers for Linux, macOS and Windows, plus release matrices with install scripts. Artifacts ship unsigned unless you enable the opt-in codesigning hooks that add a sign.sh.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
nix, packaging, native-installers, release-automation, appimage, codesigning, overlay, bundle ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Turn any Nix derivation into native installers for Linux, macOS, and Windows — no Nix required on the target machine.
It does not build your program. You hand it a pre-built derivation (e.g. pkgs.hello, your crane/cargo build, anything that produces bin/), and it emits installable artifacts plus the manifests each OS expects.
| OS | Formats |
|---|---|
| linux | deb, rpm, archlinux, appimage, flatpak, snap, brew (linuxbrew), tar.gz, tar.xz, tar.zst, zip |
| darwin | app, dmg, pkg, productbuild, brew, tar.gz, tar.xz, tar.zst, zip |
| windows | nsis (.exe), msi, tar.gz, tar.xz, tar.zst, zip |
Full autogenerated reference + programmatic access (bundler.linuxTargets, bundler.darwinTargets, …) in docs/targets.md.
Bundles ship unsigned out of the Nix sandbox. Opt-in codesigning hooks drop a turnkey sign.sh next to each artifact — see Codesigning.
overlay.nix is nix-bundle-app. Apply it to any pkgs and
get pkgs.nixBundleApp for free:
let
nix-bundle-app = builtins.fetchTarball {
url = "https://github.com/SergioRibera/nix-bundle-app/archive/<rev>.tar.gz";
sha256 = "..."; # pin a real commit + hash
};
pkgs = import <nixpkgs> {
overlays = [ (import "${nix-bundle-app}/overlay.nix") ];
};
in
pkgs.nixBundleApp.bundle {
drv = pkgs.hello;
format = "deb";
info.maintainer = "You <[email protected]>";
}
nix-build -E '...' -A hello-deb (or wrap the above in your own default.nix)
→ artifact lands in result/. See examples/hello for a
complete consumer that builds several formats at once.
bundler.bundle { drv; format; info ? {}; target ? null; }
bundler.bundleAll { drv; formats; info ? {}; target ? null; }
bundler.release { info; matrix; releaseUrl; installScripts ? true; }
bundler.signedApp { bundle; name ? "${bundle.name}-sign"; }
bundler.formats # [ "app" "appimage" … ] — all supported formats
bundler.linuxTargets # formats producible for target.os = "linux"
bundler.darwinTargets # ... darwin
bundler.windowsTargets # ... windows
bundler.targets.<os> # grouped form (linux | darwin | windows | any)
bundler.formatOS # raw { format = os | "any" | [os…]; } map
bundler above is pkgs.nixBundleApp once the overlay is applied — it groups everything that builds derivations or shells out.
Pure, pkgs-independent helpers (string/attrset rendering, no building) live under pkgs.lib.nixBundleApp instead, since they're genuine library material:
pkgs.lib.nixBundleApp.utils # parseSystem, normalizeTarget, xmlEscape, …
pkgs.lib.nixBundleApp.desktop # XDG .desktop entry rendering
pkgs.lib.nixBundleApp.services # systemd/launchd/NSIS/MSI service rendering
pkgs.lib.nixBundleApp.normalize # info.* schema validation/defaulting
target defaults to drv.system; pass { arch = "x86_64"; os = "windows"; } (etc.) for cross-bundling. info is validated at evaluation time against lib/schema.nix — the full reference lives in docs/options.md (autogenerated).
XDG .desktop files and cross-OS services are declared as Nix structs, not raw files:
info.desktopEntries = [ { name = "Hello"; exec = "/opt/hello/bin/hello %F"; categories = [ "Utility" ]; } ];
info.services = [
{ name = "hello-agent"; exec = "/opt/hello/bin/hello --daemon"; description = "Background greeter"; }
];
A single service struct materialises as:
| OS | Output |
|---|---|
| linux | /lib/systemd/system/<name>.service, enabled on postinst |
darwin (.pkg) | /Library/LaunchDaemons/<label>.plist, loaded by postinstall |
| windows (NSIS) | install-services.bat / uninstall-services.bat, run from installer sections |
| windows (MSI) | Native <ServiceInstall> + <ServiceControl> rows |
Full per-OS overrides (systemd unit/service kvs, launchd processType, sc.exe account/start/errorControl, …) are in docs/options.md.
info.fileAssociations lists the file types the app opens, so the installed app shows up under "Open with" and owns the types it defines:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub sergioribera/nix-bundle-app --plugin nix-bundle-appPlugins from other owners that cover similar ground