!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

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


SenderMessageTime
14 Jul 2025
@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
@k900:0upti.meK900Oh.13:58:21
@k900:0upti.meK900Yeah disregard me13:58:33
@k900:0upti.meK900I am not thinking good today13:58:46
@artturin:matrix.orgArtturin
In reply to @emilazy:matrix.org
is there any convention that non-Rust packages follow
https://github.com/NixOS/nixpkgs/blob/bf15e6ca04705033f4cfef069248ef55d8675cb9/pkgs/build-support/pkg-config-wrapper/setup-hook.sh#L26
14:00:08
@Ericson2314:matrix.orgJohn EricsonIt would be nice to patch that library to look for prefixed ones14:02:44
@qyliss:fairydust.spaceAlyssa RossYou tried patching it before and didn't finish it :P14:03:09
@Ericson2314:matrix.orgJohn EricsonBut that depends on the rust triple not being different, maybe 14:02:56
@qyliss:fairydust.spaceAlyssa RossYes, it does14:03:25
@qyliss:fairydust.spaceAlyssa RossYou'd need a mapping14:03:30
@qyliss:fairydust.spaceAlyssa RossWe discussed this three years ago and IIRC you came around to my pkg-config hook change14:03:46
@emilazy:matrix.orgemilyyeah I am fine with this solution14:05:16
@emilazy:matrix.orgemily Alyssa Ross: replaceStrings ["-"] ["_"] is not necessary, it checks both 14:05:27
@qyliss:fairydust.spaceAlyssa Ross
In reply to @qyliss:fairydust.space
We discussed this three years ago and IIRC you came around to my pkg-config hook change
Sadly I don't seem to have decryption keys beyond 2023
14:05:57
@emilazy:matrix.orgemily

there's also a very dubious

pkgs/development/compilers/rust/cargo.nix
111:          HOST_PKG_CONFIG_PATH = "${pkgsBuildBuild.pkg-config}/bin/pkg-config";

these days

14:05:58
@emilazy:matrix.orgemilythat is almost certainly wrong14:06:02
@emilazy:matrix.orgemily

and this is a silly hack that can go away

pkgs/build-support/rust/build-rust-package/default.nix
141:      PKG_CONFIG_ALLOW_CROSS = if stdenv.buildPlatform != stdenv.hostPlatform then 1 else 0;
14:06:14
@emilazy:matrix.orgemilyother than that the PR LGTM14:06:30
@qyliss:fairydust.spaceAlyssa RossI guess I'll give it a rebase...14:06:55
@emilazy:matrix.orgemilythough we have a field for this these days right?14:07:22
@emilazy:matrix.orgemilythe env form14:07:24

Show newer messages


Back to Room ListRoom Version: 6