Here are tools which I use to review nixpkgs packages, mainly to diff package outputs and logs.
nix-utility-gui: GUI combiningdiff-nixpkgs-attr,difflog,diffoscope-nix,nix-log-diff-analyzer.diff-nixpkgs-attr: builds nixpkgs attributes at the current and base revisions, then compares changed outputs and build logs withdiffloganddiffoscope-nix. The differences are also saved as plain text in$PWD/differences-ATTRS-BRANCH-SHORTREV/.difflog: normalizes two Nix build logs before diffing them to hide common nondeterministic differences.diffoscope-nix: runs diffoscope on two Nix store paths after masking irrelevant embedded store hashes and build IDs.nix-log-diff-analyzer(experimental): uses an LLM (local ollama or llama.cpp, or an OpenAI-compatible remote such as Gemini) with the model named byNIX_LOG_DIFF_ANALYZER_MODELto classify a build-log diff as consequential or environmental noise. Do not fully trust its result; a human should always at least skim the output.
Compare selected packages in the working tree against their merge-base with
master:
diff-nixpkgs-attr qt6Packages.qtbase kdePackages.dolphinBrowse the differences it saved in the GUI:
nix-utility-gui ./differences-qt6Packages.qtbase+kdePackages.dolphin-my-branch-1a2b3c4Compare the normalized build logs for two build results:
difflog ./result ./result1Compare two build results with diffoscope while ignoring embedded store hashes:
diffoscope-nix ./result ./result1Classify a sorted and deduplicated build-log diff with an LLM (ollama by default):
difflog --sort-lines ./result ./result1 | uniq | NIX_LOG_DIFF_ANALYZER_MODEL=qwen nix-log-diff-analyzer