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

using Musl #10623

Closed
2 tasks done
AndreyMlashkin opened this issue Apr 30, 2024 · 1 comment
Closed
2 tasks done

using Musl #10623

AndreyMlashkin opened this issue Apr 30, 2024 · 1 comment

Comments

@AndreyMlashkin
Copy link

AndreyMlashkin commented Apr 30, 2024

Problem

I would like to use musl for all my dependency tree in a project. Is there any way how to archive that?
I am going to link it statically. I know, it may be against the best practices, but still there are reasons to do so.

Priorities

Add 👍 to issues you find important.

@edolstra
Copy link
Member

If you're referring to Nix itself, you can get a static musl build by doing: nix build nix#nix-static

For building your own stuff, you can use pkgsStatic in Nixpkgs. E.g. nix build nixpkgs#pkgsStatic.hello gives you a musl build of GNU hello.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants