Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TERMINFO path for Nix release builds #731

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

elopez
Copy link
Member

@elopez elopez commented Mar 2, 2022

ncurses in Nix is built with a TERMINFO path that references /nix.
This causes the binaries fail when ran on non-nix systems, unless
TERMINFO=/usr/share/terminfo is exported. This patches the binary
to use a more sensible default TERMINFO path.

Closes: #729

ncurses in Nix is built with a TERMINFO path that references `/nix`.
This causes the binaries fail when ran on non-nix systems, unless
TERMINFO=/usr/share/terminfo is exported. This patches the binaries
to use a more sensible default TERMINFO path.
@elopez elopez requested a review from arcz March 2, 2022 22:52
@elopez
Copy link
Member Author

elopez commented Mar 2, 2022

@arcz, there must be a nicer way of fixing this 🤔

@arcz
Copy link
Member

arcz commented Mar 7, 2022

I can't think of a better way at the moment. Maybe it's possible to set this during build-time? Let's merge and fix it later if we figure out an improvement. Thanks!

@arcz arcz merged commit f76a7f4 into master Mar 7, 2022
@arcz arcz deleted the ncurses-terminfo-m1 branch March 7, 2022 12:05
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.

Mac OS, Couldn't look up terminfo entry
2 participants