!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

572 Members
125 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@emilazy:matrix.orgemilyit will be fine21:12:49
@emilazy:matrix.orgemilyif it linked against the shared object it will be able to load it unless something is very wrong21:12:58
@quadradical:federated.nexusQuadRadical (Ping)wait so how would i test this21:13:36
@quadradical:federated.nexusQuadRadical (Ping)id need to cross compile so idk21:13:40
@quadradical:federated.nexusQuadRadical (Ping)i only have standalone nix on my phone21:13:45
@quadradical:federated.nexusQuadRadical (Ping)idk if i can test it21:13:46
@emilazy:matrix.orgemilyhmm21:13:47
@emilazy:matrix.orgemily QuadRadical (Ping / Reply): what happens if you move pkg-config to pkgsBuildBuild and add lvm2(.dev) there as well 21:14:02
@emilazy:matrix.orgemily and keep strictDeps but drop the env variable 21:14:06
@emilazy:matrix.orgemilyif it builds it's fine21:14:15
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) you have ssh to your phone, right? you could nix-copy-closure the thing if the phone has nix. But if emily says its fine it'll probably be fine. 21:14:46
@quadradical:federated.nexusQuadRadical (Ping) ok will do 21:15:09
@quadradical:federated.nexusQuadRadical (Ping)
called `Result::unwrap()` on an `Err` value: "Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libudev`\nThe pkg-config command could not be found.\n\nMost likely, you need to install a pkg-config package for your OS.\nTry `apt install pkg-config`, or `yum install pkg-config`, or `brew install pkgconf`\nor `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.\n\nIf you've already installed it, ensure the pkg-config command is one of the\ndirectories in the PATH environment variable.\n\nIf you did not expect this build to link to a pre-installed system library,\nthen check documentation of the libudev-sys crate for an option to\nbuild the library from source, or disable features or dependencies\nthat require pkg-config."
       >   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run 'nix log /nix/store/1lmn5081kxxyh7jjcxh442a8s6p6x1ip-thin-provisioning-tools-aarch64-unknown-linux-gnu-1.2.0.drv'.
21:16:10
@quadradical:federated.nexusQuadRadical (Ping)looks like it cant find pkg-config21:16:22
@quadradical:federated.nexusQuadRadical (Ping)do i want it in both pkgsBuildBuild and nativeBuildInputs? i moved it but i can put it in both21:16:35
@emilazy:matrix.orgemilyuh I thought we specifically set a variable for that21:16:42
@quadradical:federated.nexusQuadRadical (Ping)oh21:16:47
@quadradical:federated.nexusQuadRadical (Ping)i never set that21:16:49
@quadradical:federated.nexusQuadRadical (Ping)will do though21:16:51
@emilazy:matrix.orgemilyno I mean21:16:55
@emilazy:matrix.orgemilywe = Nixpkgs21:16:56
@quadradical:federated.nexusQuadRadical (Ping)i never got to that point and it started working21:16:56
@quadradical:federated.nexusQuadRadical (Ping)ohh21:16:58
@emilazy:matrix.orgemilylet me check something21:16:58
@quadradical:federated.nexusQuadRadical (Ping)oke!21:17:02
@emilazy:matrix.orgemily

indeed,

export PKG_CONFIG${role_post}=@targetPrefix@@baseBinName@
21:17:51
@quadradical:federated.nexusQuadRadical (Ping)hmhm21:18:38
@emilazy:matrix.orgemily oh it's… skipped for strictDeps? what? 21:19:34
@quadradical:federated.nexusQuadRadical (Ping) same error if i dont set that 21:20:02
@quadradical:federated.nexusQuadRadical (Ping) or if i set strictDeps = false; 21:20:18

Show newer messages


Back to Room ListRoom Version: 6