# nmattia/niv

Easy dependency management for Nix projects

Repository: https://github.com/nmattia/niv
Canonical: https://ross.abutalabs.com/products/niv
Homepage: https://github.com/nmattia/niv
Language: Haskell
License: MIT
License Family: permissive
Topics: nix, package-manager, versioning
Last push: 2026-08-22T16:20:10+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2785, "days_push": 11, "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 1857, forks 76 (observed 2026-08-28T04:05:45.070637+00:00)

## What it is
niv is a command-line tool for managing dependencies in Nix projects. It stores package sources in a single nix/sources. file and provides commands to add, update, drop, and show dependencies.

## Use cases
- pin dependencies in a nix project
- update nixpkgs to a specific revision
- bootstrap a nix project with sources.
- add a github repo as a nix dependency
- manage remote sources without nix flakes

## When to choose
- you use Nix without flakes and want simple pinned dependencies
- you need reproducible nixpkgs revisions across a team
- you want a lightweight CLI to add/update GitHub-hosted nix sources

## When to avoid
- your project already uses Nix flakes
- you need general-purpose package management outside Nix
- you want a GUI or lockfile format other than sources.

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: package-manager, cli, developer-tools
- domain: developer-tools, version-control
- platform: cli, cross-platform
- tags: nix, dependency-management, haskell, sources-, command-line, linux, macos

## Member repositories
- nmattia/niv (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:45.070637+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-30T03:16:37.287771+00:00, confidence not recorded.
  - readme: https://github.com/nmattia/niv (fetched 2026-08-28T04:05:45.070637+00:00, sha 909e603aed52)
  - homepage: https://github.com/nmattia/niv (fetched 2026-08-29T10:55:18.996258+00:00, sha 7cae828ad498)
- Data as of 2026-08-30T08:39:29.467469+00:00.
