From 904414f31f4eee87785e9a50a92bebedaee45d33 Mon Sep 17 00:00:00 2001 From: Martin Schwaighofer Date: Wed, 15 Jan 2025 16:31:41 +0100 Subject: [PATCH] document how nix-bundle can be used as a bundler --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5e4b1f7..98692f8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,16 @@ Or if you want to try graphical applications: ./nix-bundle.sh ivan /bin/ivan ``` +### Using the `nix bundle` command + +This command is provided by Nix, so that Nix ends up calling `nix-bundle` for you. +It requires the `nix-command` and `flakes` experimental features to be enabled. + +We use `meta.mainProgram` attribute and other indicators to decide which executable to bundle. + +```sh +nix bundle nixpkgs#hello --bundler github:nix-community/nix-bundle +``` ## Self-bundling (meta)