| 21 Aug 2023 |
rhelmot | oooooooh | 06:14:58 |
rhelmot | how do I set NIX_DEBUG? | 06:17:22 |
trofi | you can plug it into your derivation as NIX_DEBUG="1"; as another variable, or do an usual .overrideAttrs. | 06:20:11 |
rhelmot | okay, thank you! | 06:20:45 |
rhelmot | ah shit I see. it's mad about freebsd's libpthread.a | 06:29:49 |
| 23 Aug 2023 |
artemis | anyone know how i might cross build an armv6 image? (targeting pi zero) | 11:37:55 |
artemis | theres a `pkgs.pkgsCross.armv7l-hf-multiplatform` that works for the pi2 but i dont see an armv6 | 11:38:17 |
Linux Hackerman | artemis: pkgsCross.raspberryPi is intended to work on all pis AFAIU | 11:40:01 |
artemis | oh i didnt know that existed | 11:40:13 |
artemis | ill give it a try | 11:40:23 |
Linux Hackerman | (but aarch64 is preferable on the newer ones that support it) | 11:40:28 |
Linux Hackerman | (since it has binary cache coverage on native builds) | 11:40:41 |
artemis | naturally | 11:41:15 |
artemis | pkgsCross.raspberryPi does indeed seem to be downloading an armv6 compiler. cool | 11:41:50 |
artemis | why is that named raspberryPi instead of something more generic | 11:42:18 |
Linux Hackerman | historical reasons, mostly | 11:47:43 |
Linux Hackerman | there's a raspberrypi "platform" in nixpkgs which also defines things like a kernel defconfig | 11:47:53 |
Linux Hackerman | there are plans to make pkgsCross more consistent, afaik | 11:48:22 |
artemis | tangentially to this, can i nix-copy-closure (or whatever i actually want if its not this?) to just like, a mounted partition | 11:53:33 |
Linux Hackerman | nix copy --to /foo will copy things to /foo/nix/store | 11:54:00 |
artemis | sweet ok | 11:54:06 |
Linux Hackerman | using chroot stuff | 11:54:15 |
Linux Hackerman | if you want to boot from it, make sure to do the copying as root | 11:54:27 |
Linux Hackerman | otherwise the ownership will be on your user and things will be unhappy | 11:54:44 |
artemis | is that the correct way to update a NixOS partition too? Like will that "activate" the new config or what have you | 11:54:55 |
artemis | or do i need to do something else on top to do that | 11:55:04 |
Linux Hackerman | with cross it's a bit tricky | 11:55:33 |
artemis | right now im updating a crossbuilt pi2 i have but im doing that over the network with deploy-rs | 11:55:36 |
artemis | and deploy-rs handles all the specific nix stuff for me so i only sort of know what its actually doing | 11:56:05 |
artemis | but it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything | 11:56:25 |