!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@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
@quadradical:federated.nexusQuadRadical (Ping) i mean its failing to find the pkg-config itself right? 21:20:52
@quadradical:federated.nexusQuadRadical (Ping) i mean its failing to find the pkg-config binary itself right? 21:20:56
@emilazy:matrix.orgemily ok what about depsBuildBuild = [ lvm2 ];, no pkg-config in the deps, but "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe (pkgsBuildBuild.pkg-config); 21:21:06
@emilazy:matrix.orgemilythrowing stuff at the wall to see if it sticks21:21:10
@quadradical:federated.nexusQuadRadical (Ping)will try21:22:11
@quadradical:federated.nexusQuadRadical (Ping)OH21:22:31
@quadradical:federated.nexusQuadRadical (Ping)I MAY HAVE BEEN STUPID21:22:34
@quadradical:federated.nexusQuadRadical (Ping)i was most certainly stupid21:22:37
@quadradical:federated.nexusQuadRadical (Ping) i may have declared an array called pkgsBuildBuild instead of depsBuildBuild haha... whoops 21:22:56
@emilazy:matrix.orgemilyoh yeah that would do it21:23:10
@quadradical:federated.nexusQuadRadical (Ping)wait no it still failed21:23:14
@emilazy:matrix.orgemilyI'm still not sure the variables are getting mangled right but21:23:16

Show newer messages


Back to Room ListRoom Version: 6