Skip to content

Commit

Permalink
In the README, recommend a git url (#343)
Browse files Browse the repository at this point in the history
* In the README, recommend a git url

* More comprehensive self-build instructions
  • Loading branch information
Hoverbear authored Mar 16, 2023
1 parent f98fbba commit df0d8eb
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,40 @@ Since you'll be using `nix-installer` to install Nix on systems without Nix, the
Build a portable Linux binary on a system with Nix:
```bash
# to build a local copy
nix build -L .#nix-installer-static
# to build the remote main development branch
nix build -L github:determinatesystems/nix-installer#nix-installer-static
# for a specific version of the installer:
export NIX_INSTALLER_TAG="v0.5.0"
nix build -L github:determinatesystems/nix-installer/$NIX_INSTALLER_TAG#nix-installer-static
```
On Mac:
```bash
# to build a local copy
nix build -L .#nix-installer
# to build the remote main development branch
nix build -L github:determinatesystems/nix-installer#nix-installer
# for a specific version of the installer:
export NIX_INSTALLER_TAG="v0.5.0"
nix build -L github:determinatesystems/nix-installer/$NIX_INSTALLER_TAG#nix-installer
```
Then copy the `result/bin/nix-installer` to the machine you wish to run it on.
You can also add `nix-installer` to a system without Nix via `cargo`:
```bash
RUSTFLAGS="--cfg tokio_unstable" cargo install nix-installer
# to build and run a local copy
RUSTFLAGS="--cfg tokio_unstable" cargo run -- --help
# to build the remote main development branch
RUSTFLAGS="--cfg tokio_unstable" cargo install --git https://github.com/DeterminateSystems/nix-installer
nix-installer --help
# for a specific version of the installer:
export NIX_INSTALLER_TAG="v0.5.0"
RUSTFLAGS="--cfg tokio_unstable" cargo install --git https://github.com/DeterminateSystems/nix-installer --tag $NIX_INSTALLER_TAG
nix-installer --help
```
Expand Down

0 comments on commit df0d8eb

Please sign in to comment.