# oxalica/rust-overlay

Pure and reproducible nix overlay of binary distributed rust toolchains

Repository: https://github.com/oxalica/rust-overlay
Canonical: https://ross.abutalabs.com/products/rust-overlay
Language: Nix
License: MIT
License Family: permissive
Topics: rust, nix, nix-flakes
Last push: 2026-08-26T03:11:35+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2070, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1549, forks 87 (observed 2026-08-28T04:05:01.999767+00:00)

## What it is
A pure and reproducible Nix overlay that packages binary-distributed Rust toolchains, including stable, beta, and nightly versions. It provides both classic overlay and Nix Flake interfaces, with pre-fetched component hashes for pure evaluation and daily auto-updated hashes via GitHub Actions.

## Use cases
- install a specific rust toolchain version reproducibly with nix
- pin rust nightly in a nix flake for a project
- replace nixpkgs-mozilla rust overlay
- set up cross-compilation rust toolchains with nix
- provide rust toolchain in a nix shell dev environment
- use rust in NixOS configuration without rustup

## When to choose
- you use Nix or NixOS and want reproducible, pure rust toolchain installs
- you need pinned nightly or specific rust versions in flakes
- you want to avoid rustup and manage rust via nix
- you need cross-compilation toolchains managed declaratively

## When to avoid
- you don't use Nix and just want a simple rust install (use rustup)
- you need platforms other than x86_64-linux with guaranteed support
- you need very old nightly versions (only available via old snapshot tags)

## Facets
- artifact type: infra-config
- maturity: active
- function: build-tool, package-manager, developer-tools
- domain: developer-tools, programming-languages
- platform: -
- tags: nix-overlay, nix-flakes, rust-toolchain, reproducible-builds, cross-compilation, devops, linux, macos, nix

## Member repositories
- oxalica/rust-overlay (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.999767+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:23.685659+00:00, confidence not recorded.
  - readme: https://github.com/oxalica/rust-overlay (fetched 2026-08-28T04:05:01.999767+00:00, sha beb2c4267704)
- Data as of 2026-08-30T08:39:29.467469+00:00.
