| 13 Jun 2025 |
emily | are you sure? that's more targetPlatform in the world | 19:23:40 |
K900 | But then we have packages like qtsvg or whatever that are literally just a .so | 19:23:50 |
Alyssa Ross | buildPackages would be for run-on-cross tools | 19:23:51 |
K900 | And those have to be in buildInputs | 19:23:54 |
emily | like, FLTK and SDL1 and stuff have *-config tools that go in outputs | 19:24:01 |
emily | that are for the buildPlatform | 19:24:05 |
K900 | And we'll be shoving them to nativeBuildInputs | 19:24:05 |
K900 | For basically no reason | 19:24:12 |
emily | it seems wrong to have to move every user to nativeBuildInputs when it grows that | 19:24:16 |
emily | every cross package has parts of its outputs intended to be consumed on buildPlatform already | 19:24:32 |
emily | like, that's what dev is | 19:24:36 |
K900 | Well with cmake/qt it has to be nativeBuildInputs or our patch explodes it even more | 19:24:36 |
emily | the headers might not be machine code but they're still intended for consumption on buildPlatform | 19:24:47 |
emily | it seems to me like $dev/bin is an appropriate place for buildPlatform tools | 19:24:54 |
K900 | Because the patch basically makes it not search for host tools in buildInputs | 19:24:54 |
K900 | If we do that then we have to basically fuck up every cmake file | 19:25:10 |
K900 | But maybe yes | 19:25:17 |
emily | I think rather we might want to teach stdenv about $dev/bin | 19:25:25 |
emily | as opposed to $out/bin and $bin/bin | 19:25:31 |
K900 | That won't help because they hardcode paths half the time | 19:25:37 |
emily | fair | 19:25:49 |
emily | I just mean in general | 19:25:52 |
emily | in principle, dev is kinda weird, it's "one step up" the cross hierarchy | 19:26:00 |
emily | but IMO it works for tools as much as it does for other stuff used for compiling | 19:26:12 |
emily | since Nixpkgs cross assumes you're always building on buildPlatform, it's harmless/correct for build tools to be built for buildPlatform | 19:26:38 |
K900 | Anyway what I'm getting from all this is that I'll leave it as strictDeps=false and go back to bashing my head against shiboken | 19:33:22 |
K900 | And if someone wants to figure it out, they'll have to fuck things up significantly anyway | 19:33:37 |
K900 | I still need to finish the world rebuild with just the strictDeps changes | 19:39:19 |
K900 | And then I'll have to add 6.15 on top and do another one | 19:39:31 |
K900 | OK going to need some actual reviews here | 20:11:41 |