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 error when devenv ci in devcontainer #561

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

gsantoro
Copy link
Contributor

@gsantoro gsantoro commented Apr 27, 2023

Correctly run devenv.sh in a devcontainer.

Solution provided at NixOS/nix#5258 (comment)

Closes NixOS/nix#560

I have now tested my changes and it works perfectly on my M1 Mac book.

My only concern is that the docker image is 1.47GB which is much bigger than the official image at 944MB. I am not sure what happened there since the only difference is a single line in the nix.conf.

@gsantoro
Copy link
Contributor Author

One more thing. when running commands (eg. devenv search <package>) from inside the devcontainer running from a named volume I got an error GLIB not found.

I found here someone having a similar problem.

I solved the problem by unset LD_LIBRARY_PATH. I am sure that it is a better way to fix it but I am not sure.

@domenkozar domenkozar merged commit 971ca55 into cachix:main Apr 28, 2023
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.

A primop (or two) for canonicalizing a value
2 participants