# nix-community/nix-init

Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]

Repository: https://github.com/nix-community/nix-init
Canonical: https://ross.abutalabs.com/products/nix-init
Language: Rust
License: MPL-2.0
License Family: copyleft
Topics: go, nix, rust, cargo, python, template, poetry, nixpkgs
Last push: 2026-08-26T08:55:10+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 72, longevity 94
- inputs: {"age_days": 1323, "days_push": 7, "days_rel": 110, "gap_med": 32, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1456, forks 44 (observed 2026-08-28T04:04:46.923410+00:00)

## What it is
nix-init is a Rust CLI tool that generates Nix package expressions from a source URL. It automates hash prefetching, dependency inference for Rust, Go, and Python projects, and license detection, with interactive prompts and a headless mode.

## Use cases
- generate a nix package derivation from a github url
- scaffold nixpkgs package expressions automatically
- prefetch cargo and go vendor hashes for nix builds
- infer dependencies for rust go or python projects in nix
- detect licenses when packaging software for nix
- create nix packages non-interactively in scripts

## When to choose
- you maintain or contribute to nixpkgs and want to speed up packaging
- you need a starting-point derivation for a new package and accept manual tweaks
- you want automated hash prefetching and license detection for nix packages

## When to avoid
- you don't use the nix package manager
- you need fully correct packages with zero manual review
- you need a general-purpose nix configuration generator rather than package derivations

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, package-manager
- domain: developer-tools
- platform: cli, rust
- tags: nix, nixpkgs, package-generation, hash-prefetching, dependency-inference, license-detection, scaffolding, code-generation, command-line, package-management, linux, macos

## Member repositories
- nix-community/nix-init (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:46.923410+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:35:37.274775+00:00, confidence not recorded.
  - readme: https://github.com/nix-community/nix-init (fetched 2026-08-28T04:04:46.923410+00:00, sha eba7019d3b6c)
  - registry_crates: https://crates.io/api/v1/crates/nix-init (fetched 2026-08-29T11:44:37.362699+00:00, sha 0a8805ba966c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
