| 13 Jul 2025 |
QuadRadical (Ping) | ty | 21:36:41 |
QuadRadical (Ping) | i appreciate the help a lot | 21:36:45 |
emily | hopefully someone who understand Rust cross weirdness better than me can have a look at it and figure out the right thing | 21:36:45 |
QuadRadical (Ping) | i never would have figured this out on my own | 21:36:50 |
emily | in the meantime it should unblock building your system up to the next cross bug :P | 21:36:56 |
QuadRadical (Ping) | yep | 21:37:17 |
QuadRadical (Ping) | wait a second | 21:37:22 |
QuadRadical (Ping) | i found it | 21:37:23 |
QuadRadical (Ping) | i think? | 21:37:28 |
QuadRadical (Ping) | lets see | 21:37:35 |
QuadRadical (Ping) | this works:
strictDeps = true;
depsBuildBuild = [
pkg-config
lvm2.dev
udev
];
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = [
lvm2.dev
udev
];
I was missing .dev from the buildInputs lvm2 when i tried to reproduce the success @emily | 21:38:07 |
emily | wait, that actually changes whether it works? | 21:40:05 |
QuadRadical (Ping) | yep | 21:40:09 |
emily | I wonder if that's a strictDeps thing. | 21:40:13 |
emily | does it work without the .dev if you disable strictDeps again? | 21:40:21 |
emily | well I guess it'll break in other ways. ok interesting though | 21:40:35 |
QuadRadical (Ping) | yes seemingly | 21:40:49 |
emily | and copying pkg-config to nativeBuildInputs and removing udev from depsBuildBuild definitely re-breaks this? | 21:41:03 |
QuadRadical (Ping) | it wont build it again it has it cached | 21:41:09 |
QuadRadical (Ping) | how do i force nix-build to actually try again | 21:41:14 |
QuadRadical (Ping) | i did it | 21:42:36 |
QuadRadical (Ping) | yes it works fine | 21:42:43 |
QuadRadical (Ping) | lets see | 21:42:53 |
emily | if it's cached then you know it builds | 21:42:56 |
emily | but --rebuild | 21:42:58 |
QuadRadical (Ping) | error: unrecognised flag '--rebuild' | 21:43:10 |
QuadRadical (Ping) | ah should i use nix build rather than nix-build | 21:43:18 |
QuadRadical (Ping) | yep | 21:43:40 |
QuadRadical (Ping) | wait what | 21:44:52 |
QuadRadical (Ping) | now it succeeded even without the .dev | 21:44:57 |