<sb0>
anyone had to deal with this problem before?
alex_giusi_tiri has left #nixos-aarch64 [#nixos-aarch64]
jackdk has quit [Ping timeout: 244 seconds]
<sphalerite>
sb0: you may need to override it to have libusb in buildInputs *and* nativeBuildInputs
<sphalerite>
sb0: although actually I'm not sure that will help either
<sphalerite>
sb0: but the problem is, AFAIU, that libusb has a libusb-config tool which I'm guessing is compiled, which is probably compiled for aarch64 in that build, thus can't be run natively
<sphalerite>
sb0: alternatively, perhaps you could replace it with a shell script that does the work
<sb0>
yep, same thing with nativeBuildInputs
<sb0>
libusb-config is already a shell script, but somehow, it does not get built when cross-compiling
<sb0>
er, no...
<sb0>
well i don't know where that script comes from. it's in nix-shell -p libusb, but not in the libusb nix store entry
<kai_w>
clever: I've got a DS18B20, which is definitely working for other people. It's on 3.3V power too, not parasitic so it should be fine
<kai_w>
I think the reason it's not working is that I'm missing the overlays directory, so setting "dtoverlay=..." can't work since there are no overlays to load
<kai_w>
But I don't know enough about u-boot to know where to put the overlays - raspbian has them in /boot/overlays, but they also have their .dtb files in /boot whereas nixos has them in /boot/nixos/
<sphalerite>
sb0: it's probably in libusb's dev output
<sb0>
sphalerite: how do I access it? why does it seem like the cross-compilation disable this output when it is used by openocd?
<sb0>
tried commenting out "outputs = [ "out" "dev" ];" in libusb - doesn't help ...