Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the README, recommend a git url #343

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,21 +252,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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure we want this to be the "default" recommendation...? Maybe add a note like "if you want to try the most recent, not-yet-released changes, you can also install directly from git with: ...."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, maybe. We should do that with the nix flake ref too then

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