Skip to content

fix: set meta.mainProgram so nix run works#28

Merged
scarisey merged 4 commits intoscarisey:mainfrom
aaron-nall:main
Mar 6, 2026
Merged

fix: set meta.mainProgram so nix run works#28
scarisey merged 4 commits intoscarisey:mainfrom
aaron-nall:main

Conversation

@aaron-nall
Copy link
Copy Markdown
Contributor

nix run falls back to looking for a binary matching pname (github-copilot-cli), but the package only installs a "copilot" binary. Setting mainProgram tells nix run which binary to execute.

This allows running similar to

nix --accept-flake-config --extra-experimental-features "nix-command flakes" run github:scarisey/copilot-cli-flake

aaron-nall and others added 2 commits March 3, 2026 01:08
nix run falls back to looking for a binary matching pname
(github-copilot-cli), but the package only installs a "copilot"
binary. Setting mainProgram tells nix run which binary to execute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scarisey
Copy link
Copy Markdown
Owner

scarisey commented Mar 6, 2026

Hello @aaron-nall . That's a good point, thank you !

@scarisey scarisey enabled auto-merge (rebase) March 6, 2026 13:28
@scarisey scarisey disabled auto-merge March 6, 2026 14:06
@scarisey scarisey merged commit 97f297f into scarisey:main Mar 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants