Skip to content

Update flake.nix#92

Merged
MattiaPun merged 1 commit into
MattiaPun:mainfrom
consoleillusion:patch-1
Mar 22, 2026
Merged

Update flake.nix#92
MattiaPun merged 1 commit into
MattiaPun:mainfrom
consoleillusion:patch-1

Conversation

@consoleillusion
Copy link
Copy Markdown
Contributor

@consoleillusion consoleillusion commented Mar 19, 2026

Currently nix run github:MattiaPun/SubTUI fails with

/nix/store/vka5h05hsjrwc50k8hm909zwlar9i1fp-subtui-unstable-dev/bin/SubTUI](error: unable to execute '/nix/store/vka5h05hsjrwc50k8hm909zwlar9i1fp-subtui-unstable-dev/bin/SubTUI': No such file or directory)

The binary has the incorrect casing. This postInstall line makes nix run work. I believe there is an alternative to rename the go binary?

Currently `nix run github:MattiaPun/SubTUI` fails with 

```sh
/nix/store/vka5h05hsjrwc50k8hm909zwlar9i1fp-subtui-unstable-dev/bin/SubTUI
```

The binary has the incorrect casing. This most install line makes `nix run` work. I believe there is an alternative to rename the go binary?
@suzana2314
Copy link
Copy Markdown
Contributor

Instead of doing a mv on postInstall wouldn't it be cleaner to just change the mainProgram to SubTUI instead of subtui?

@consoleillusion
Copy link
Copy Markdown
Contributor Author

consoleillusion commented Mar 20, 2026

Could do that, however I find it very strange to have capitalized command names. They aren't particularly common, and makes it hard to remember, lowercase is the standard. VirtualBox is the only exception that comes to mind. It's owner's call I guess.

@MattiaPun MattiaPun merged commit c68ae65 into MattiaPun:main Mar 22, 2026
1 check passed
@MattiaPun
Copy link
Copy Markdown
Owner

I agree with @consoleillusion, lowercase is the standard for tools (especially CLI-tools). Additionally, anyone installing SubTUI via the AUR already gets the lowercase subtui binary, so this adding this change keeps it consistent.

Thank you for the PR and thank you for your opinion on the topic to the both of you!
I will merge this and it will be available in the next release.

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.

3 participants