| 13 Jul 2025 |
QuadRadical (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 (Ping) | looks like it cant find pkg-config | 21:16:22 |
QuadRadical (Ping) | do i want it in both pkgsBuildBuild and nativeBuildInputs? i moved it but i can put it in both | 21:16:35 |
emily | uh I thought we specifically set a variable for that | 21:16:42 |
QuadRadical (Ping) | oh | 21:16:47 |
QuadRadical (Ping) | i never set that | 21:16:49 |
QuadRadical (Ping) | will do though | 21:16:51 |
emily | no I mean | 21:16:55 |
emily | we = Nixpkgs | 21:16:56 |
QuadRadical (Ping) | i never got to that point and it started working | 21:16:56 |
QuadRadical (Ping) | ohh | 21:16:58 |
emily | let me check something | 21:16:58 |
QuadRadical (Ping) | oke! | 21:17:02 |
emily | indeed,
export PKG_CONFIG${role_post}=@targetPrefix@@baseBinName@
| 21:17:51 |
QuadRadical (Ping) | hmhm | 21:18:38 |
emily | oh it's… skipped for strictDeps? what? | 21:19:34 |
QuadRadical (Ping) | same error if i dont set that | 21:20:02 |
QuadRadical (Ping) | or if i set strictDeps = false; | 21:20:18 |
QuadRadical (Ping) | i mean its failing to find the pkg-config itself right? | 21:20:52 |
QuadRadical (Ping) | i mean its failing to find the pkg-config binary itself right? | 21:20:56 |
emily | 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 |
emily | throwing stuff at the wall to see if it sticks | 21:21:10 |
QuadRadical (Ping) | will try | 21:22:11 |
QuadRadical (Ping) | OH | 21:22:31 |
QuadRadical (Ping) | I MAY HAVE BEEN STUPID | 21:22:34 |
QuadRadical (Ping) | i was most certainly stupid | 21:22:37 |
QuadRadical (Ping) | i may have declared an array called pkgsBuildBuild instead of depsBuildBuild haha... whoops | 21:22:56 |
emily | oh yeah that would do it | 21:23:10 |
QuadRadical (Ping) | wait no it still failed | 21:23:14 |
emily | I'm still not sure the variables are getting mangled right but | 21:23:16 |