riff icon indicating copy to clipboard operation
riff copied to clipboard

set libc type or glibc version

Open msalib opened this issue 2 years ago • 2 comments

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?

msalib avatar Sep 07 '22 14:09 msalib

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.

grahamc avatar Sep 07 '22 15:09 grahamc

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"

alekseysidorov avatar Nov 18 '22 09:11 alekseysidorov