Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

set libc type or glibc version #117

Open
msalib opened this issue Sep 7, 2022 · 2 comments
Open

set libc type or glibc version #117

msalib opened this issue Sep 7, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@msalib
Copy link

msalib commented Sep 7, 2022

Is there any way to either ask for musl libraries or build with a particular glibc version (like cargo zigbuild) for folks who need to ship binaries to older systems running older libcs?

@grahamc
Copy link
Member

grahamc commented Sep 7, 2022

We don't support this right now. We've been thinking / wondering about how to handle cross and other targets, but we're not ready to adopt that complexity yet. Maybe adding your musl packages to the build-inputs would be sufficient? I'm not sure -- if you do some experiments, we'd love to hear back.

@cole-h cole-h added the enhancement New feature or request label Oct 11, 2022
@alekseysidorov
Copy link

I'd try to make it possible to specify the custom settings for the nix packages, or even use the custom nix file.

Also, we can specify this nix custom packages to certain cargo targets.

Something like this:

[package.metadata.riff.targets.aarch64-apple-darwin]
# Just specify cross system
nixpkgs.crossSystem.config = "x86_64-unknown-linux-musl"
# Or use specific nix file
nixpkgs.fromFile = "config.nix"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants