Where can I get a statically built nix?

In another thread, Eelco Dolstra provided a straightforward answer for people searching for a way to download statically linked Nix binary directly.

TL;DR

  1. download the binary from https://hydra.nixos.org/job/nix/master/buildStatic.x86_64-linux/latest/download-by-type/file/binary-dist
  2. Rename it as nix
  3. chmod +x ./nix

The above URL downloads the product of the Hydra job nix:master:buildStatic.x86_64-linux.

2 Likes