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 a custom libc derivation #307600

Open
theoparis opened this issue Apr 29, 2024 · 1 comment
Open

Using a custom libc derivation #307600

theoparis opened this issue Apr 29, 2024 · 1 comment
Labels
0.kind: enhancement 6.topic: bootstrap Bootstrapping, avoiding pre-built binaries. Often overlaps with cross-compilation.

Comments

@theoparis
Copy link
Contributor

theoparis commented Apr 29, 2024

Issue description

I have asked in several places but for some reason no one seems to have a proper solution to my problem. I want to use a custom libc with nixpkgs (for example, LLVM Libc, bionic or apple's libc built from upstream sources instead of prebuilt nixpkgs packages) and I cannot seem to find a way to override the libc easily by providing a derivation. All I could find is how to override it via a string such as libc = "musl" which doesn't help me here.

If this is not supported already, adding support for this could also make #296577 easier. Additionally, this could make porting libc++ or even nix to a new OS simpler.

If this is already supported I'd at least like for this be documented somewhere.

@RossComputerGuy
Copy link
Contributor

Yeah, if being able to specify a custom libc was as simple as passing over a derivation then that could make the process just so much simpler.

@tomodachi94 tomodachi94 added 0.kind: enhancement 6.topic: bootstrap Bootstrapping, avoiding pre-built binaries. Often overlaps with cross-compilation. labels May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement 6.topic: bootstrap Bootstrapping, avoiding pre-built binaries. Often overlaps with cross-compilation.
Projects
None yet
Development

No branches or pull requests

3 participants