!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
128 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@qyliss:fairydust.spaceAlyssa RossI wanted to do it13:51:47
@qyliss:fairydust.spaceAlyssa Rosshttps://github.com/NixOS/nixpkgs/pull/196333/files#r99662289113:51:51
@qyliss:fairydust.spaceAlyssa Ross IIRC John Ericson later told me he'd no longer block it but then I never revisited it. 13:52:13
@emilazy:matrix.orgemilycan't we just set this in the Rust hook13:52:49
@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
@dramforever:matrix.orgdramforeveri think the cross pkg-config can set its own env vars13:58:11
@quadradical:federated.nexusQuadRadical (Ping)* it seems fairly reasonable to do if it works and doesnt break other packages13:58:15
@k900:0upti.meK900Oh13:58:18

Show newer messages


Back to Room ListRoom Version: 6