#1106·hunk

0.22.0 Nix flake package: hunk patch fails with missing hunkdiff sibling binary

Author: schickling-assistantCreated Sep 15, 2026Updated Sep 16, 2026

Repro

bash
nix run github:modem-dev/hunk/v0.22.0 -- patch /tmp/smoke.patch
# error: unable to execute '…/bin/hunkdiff': No such file or directory

The flake's nix/package.nix installs a single compiled binary as $out/bin/hunk, but the patch subcommand expects a hunkdiff sibling next to the executable. The npm package ships both hunk and hunkdiff bins (same ./bin/hunk.cjs, argv[0]-dispatched).

Regression

v0.21.1 works with the identical install layout (hunk + hidden .hunk-wrapped, no hunkdiff): hunk patch file.patch renders the review TUI. v0.22.0 fails as above. hunk --version / --help / skill path still work on 0.22.0.

Environment

x86_64-linux, Nix (nixpkgs nixos-unstable). Happy to test a fix.

Posted on behalf of @schickling
field value
agent_identity dev3.direct.omp.udckw4nk
session unknown
agent_persona generalist
agent_supervisor unavailable
agent_tool OMP
agent_tool_version 18.1.14
agent_runtime OMP 18.1.14
agent_model openai-codex/gpt-5.6-sol
worktree 2026-09-12-tmux/2026-09-15-external-flakes
tooling_profile dotfiles@183d780