Latest / Developer tools

nix-ninja

github.com · Open source · Maintained

Incremental, Ninja-compatible build system for Nix

Visit github.com ↗Share

  • build system
  • ninja
  • nixos
  • nix incremental build
  • ninja nix
  • nix dynamic derivations
  • cmake nix
  • meson nix build
Stars
275
Forks
15
Open issues
12
Last commit
Found
20 months ago

GitHub figures as of . They are context, not a ranking.

nix-ninja is a Rust build system that brings compilation-unit level incremental builds to Nix, using dynamic derivations. It targets Ninja build files produced by tools such as CMake and meson, so changing one source file rebuilds only the affected units. It suits Nix users who build projects generated by CMake or meson.

Repository description on GitHub: “Ninja-compatible incremental build system for Nix”

What it does

  • Parses Ninja build files and creates a derivation per compilation unit
  • Stores build inputs and outputs in content-addressed derivations
  • Ninja-compatible CLI so meson builds work with it
  • Runs locally or inside a Nix derivation

Good for

  • Rebuild only the changed units of a CMake or meson project in Nix
  • Build a Nix package incrementally with dynamic derivations

Suits: Nix users building projects generated by CMake or meson.

Worth knowing: Has major open todos and depends on experimental features from an unreleased Nix version

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw nix-ninja on , when hinshun posted it to Show HN. GitHub listed no published releases for pdtpartners/nix-ninja when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 33 points, 15 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 33 points, 15 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: pdtpartners/nix-ninja
  2. Found: hinshun posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was nix-ninja released?
No dated release record is available. Kip found it on Show HN on 3 Apr 2025.
Is nix-ninja open source?
Its source is public on GitHub at pdtpartners/nix-ninja under the MIT licence.
What does nix-ninja run on?
Command line.
Is nix-ninja free?
It is open source, so the code is free to read and run; check the licence for terms.
Is nix-ninja still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorypdtpartners/nix-ninja
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-43567701. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.