| 13 Jul 2025 |
QuadRadical (Ping) | @emily | 21:26:51 |
QuadRadical (Ping) | this builds:
depsBuildBuild = [
pkg-config
lvm2.dev
udev
];
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = [
udev
lvm2
];
| 21:26:55 |
QuadRadical (Ping) | that works fine | 21:27:00 |
QuadRadical (Ping) | just had to put udev in both | 21:27:08 |
emily | with no environment variables? | 21:27:09 |
QuadRadical (Ping) | correct | 21:27:13 |
QuadRadical (Ping) | and strictDeps | 21:27:18 |
emily | what if you drop udev from pkgsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? | 21:27:34 |
emily | * what if you drop udev from depsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? | 21:27:41 |
QuadRadical (Ping) | sure will try | 21:27:58 |
QuadRadical (Ping) | fails | 21:28:39 |
QuadRadical (Ping) | The system library `devmapper` required by crate `devicemapper-sys` was not found.
> The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> PKG_CONFIG_PATH contains the following:
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
>
> HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.The system library `devmapper` required by crate `devicemapper-sys` was not found.
> The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> PKG_CONFIG_PATH contains the following:
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
>
> HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
| 21:28:46 |
emily | I see. and if you drop pkg-config from depsBuildBuild and set "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;? | 21:29:26 |
QuadRadical (Ping) | like this then?
"PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;
depsBuildBuild = [
lvm2.dev
];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
udev
];
| 21:30:03 |
QuadRadical (Ping) | same err | 21:30:06 |
QuadRadical (Ping) | The system library devmapper required by crate devicemapper-sys was not found. | 21:30:12 |
QuadRadical (Ping) | > The system library `devmapper` required by crate `devicemapper-sys` was not found.
> The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> PKG_CONFIG_PATH contains the following:
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
> - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
>
> HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
| 21:30:26 |
emily | uh, hmm. | 21:30:34 |
emily | this is confusing :) | 21:30:42 |
emily | I don't understand why it works with the wrong udev. | 21:31:03 |
QuadRadical (Ping) | well putting udev solely in depsBuildBuild fixes devmapper but breaks thinp | 21:31:33 |
QuadRadical (Ping) | same with lvm2 | 21:31:41 |
QuadRadical (Ping) | putting it in both allows both to build | 21:31:47 |
emily | yes. but I don't quite understand how it manages to keep the two separate :) | 21:31:54 |
QuadRadical (Ping) | let me try again make sure im not crazy | 21:32:05 |
QuadRadical (Ping) | wait its failing now | 21:32:24 |
QuadRadical (Ping) | uhhh | 21:32:25 |
QuadRadical (Ping) | thinp fails to build again now | 21:32:35 |
emily | maybe nix derivation show the output path of the one that actually worked | 21:32:46 |
emily | you probably built something different to what you thought | 21:32:54 |