Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nix-hunkdiff-alias.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hunkdiff": patch
---

Fix `hunk patch` (and other review flows) under the Nix flake package by installing the `hunkdiff` alias next to `hunk`, mirroring the npm package's dual binaries. Without it the review flow fails with "unable to execute '…/bin/hunkdiff'".
5 changes: 5 additions & 0 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ in
runHook preInstall
mkdir -p $out/bin
cp -p ./hunk-bin $out/bin/hunk
# `hunk patch` (and friends) respawn the TUI through a `hunkdiff`
# lookup, mirroring the npm package's dual `hunk`/`hunkdiff` bins.
# Without this alias the review flow fails with
# "unable to execute '…/bin/hunkdiff'".
ln -s hunk $out/bin/hunkdiff
cp -r ./packages/hunk/skills $out/
wrapProgram $out/bin/hunk --set HUNK_INSTALL_SOURCE nix
runHook postInstall
Expand Down
Loading