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

package: use binary wrapper and preset locale archive #1594

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

sandydoo
Copy link
Member

On non-NixOS Linux systems, any call to bash will print out a warning about failing to set locale vars. This can be triggered for the entire code path, from launching devenv until enterShell.

The fix is to set LOCALE_ARCHIVE globally. This should be done right after installing Nix, but is not a very obvious thing.

The issue with devenv is that our first entry-point is wrapProgram, which calls bash. This PR switches to makeBinaryWrapper to avoid calls to bash and sets LOCALE_ARCHIVE if missing.

@sandydoo sandydoo marked this pull request as ready for review November 19, 2024 14:08
@domenkozar domenkozar merged commit 6473534 into main Nov 19, 2024
264 of 281 checks passed
@domenkozar
Copy link
Member

This also needs to go to nixpkgs?

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