!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

584 Members
129 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
14 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping)i can test your pr with this to see if it fixes maybe, alyssa13:53:13
@qyliss:fairydust.spaceAlyssa RossThere is no "Rust hook"13:53:16
@qyliss:fairydust.spaceAlyssa RossIt would have to be the Cargo hook13:53:24
@qyliss:fairydust.spaceAlyssa RossAnd I think that makes less sense than the pkg-config one13:53:32
@k900:0upti.meK900We could add a hook13:53:34
@qyliss:fairydust.spaceAlyssa RossYou might not be using Cargo, but you'll definitely be using pkg-config.13:53:38
@emilazy:matrix.orgemilyis there any convention that non-Rust packages follow13:54:53
@emilazy:matrix.orgemily like HOST_PKG_CONFIG or whatever 13:54:59
@emilazy:matrix.orgemilyeven vaguely13:55:02
@qyliss:fairydust.spaceAlyssa Ross I think it's just to run pkg-config. 13:55:12
@emilazy:matrix.orgemilyI guess they just do target prefixing?13:55:13
@qyliss:fairydust.spaceAlyssa Ross $PKG_CONFIG for host, pkg-config for build. 13:55:24
@emilazy:matrix.orgemilywow, wtf. gross13:56:01
@k900:0upti.meK900 see even pkg-config hates target 13:56:06
@emilazy:matrix.orgemilywe could accommodate this in https://docs.rs/pkg-config/latest/src/pkg_config/lib.rs.html#63813:56:15
@emilazy:matrix.orgemilymaybe.13:56:26
@emilazy:matrix.orgemilyactually not in that function. but in a nearby one13:56:29
@k900:0upti.meK900But then you'd have to update pkg-config in every Rust package13:56:48
@dramforever:matrix.orgdramforever just to add to the mess linux uses HOSTPKG_CONFIG 13:56:57
@qyliss:fairydust.spaceAlyssa RossWe could also just set the existing variables, in the existing pkg-config hook…13:57:04
@k900:0upti.meK900Wouldn't we have to pull in cross pkg-configs into the hook then13:57:30
@quadradical:federated.nexusQuadRadical (Ping)im testing alyssas pr rn13:57:56
@quadradical:federated.nexusQuadRadical (Ping)iti seems fairly reasonable to do if it works13:58:07

Show newer messages


Back to Room ListRoom Version: 6