# nix-community/naersk

Build Rust projects in Nix - no configuration, no code generation, no IFD, sandbox friendly.

Repository: https://github.com/nix-community/naersk
Canonical: https://ross.abutalabs.com/products/naersk
Language: Nix
License: MIT
License Family: permissive
Topics: rust-lang, cargo, nix, crates
Last push: 2026-06-23T13:11:23+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 2638, "days_push": 71, "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 1005, forks 100 (observed 2026-08-28T04:03:11.579131+00:00)

## What it is
Naersk is a Nix library for building Rust projects by turning Cargo projects into Nix derivations. It parses Cargo.lock, fetches dependencies, and compiles inside Nix's sandbox without IFD or code generation.

## Use cases
- build rust projects with nix
- package a cargo application as a nix derivation
- reproducible rust builds with cargo.lock
- use rust in nixos system packages
- build rust with hydra without import-from-derivation

## When to choose
- you want zero-config Nix builds for Rust projects
- you need sandbox-friendly, cached dependency builds
- you use Hydra or Nix flakes and want to avoid IFD

## When to avoid
- you don't use the Nix package manager
- you need fine-grained control over cargo features or workspace overrides that naersk doesn't expose
- you prefer crane or buildRustPackage from nixpkgs

## Facets
- artifact type: library
- maturity: active
- function: build-tool, package-manager, developer-tools
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: nix, rust, cargo, reproducible-builds, flakes, devops, linux, macos

## Member repositories
- nix-community/naersk (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:11.579131+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-30T07:13:10.792927+00:00, confidence not recorded.
  - readme: https://github.com/nix-community/naersk (fetched 2026-08-28T04:03:11.579131+00:00, sha d0b77b4621b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
