DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

set libc type or glibc version #117

Open msalib opened 2 years ago

msalib commented 2 years ago

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 commented 2 years ago

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.

alekseysidorov commented 1 year ago

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"