!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

347 Members
109 Servers

Load older messages


SenderMessageTime
21 Aug 2023
@trofi:matrix.orgtrofi you can plug it into your derivation as NIX_DEBUG="1"; as another variable, or do an usual .overrideAttrs. 06:20:11
@rhelmot:matrix.orgrhelmotokay, thank you!06:20:45
@rhelmot:matrix.orgrhelmotah shit I see. it's mad about freebsd's libpthread.a06:29:49
23 Aug 2023
@artemis:arty.chatartemisanyone know how i might cross build an armv6 image? (targeting pi zero)11:37:55
@artemis:arty.chatartemistheres a `pkgs.pkgsCross.armv7l-hf-multiplatform` that works for the pi2 but i dont see an armv611:38:17
@linus:schreibt.jetztLinux Hackerman artemis: pkgsCross.raspberryPi is intended to work on all pis AFAIU 11:40:01
@artemis:arty.chatartemisoh i didnt know that existed11:40:13
@artemis:arty.chatartemisill give it a try11:40:23
@linus:schreibt.jetztLinux Hackerman(but aarch64 is preferable on the newer ones that support it)11:40:28
@linus:schreibt.jetztLinux Hackerman(since it has binary cache coverage on native builds)11:40:41
@artemis:arty.chatartemisnaturally11:41:15
@artemis:arty.chatartemispkgsCross.raspberryPi does indeed seem to be downloading an armv6 compiler. cool11:41:50
@artemis:arty.chatartemiswhy is that named raspberryPi instead of something more generic11:42:18
@linus:schreibt.jetztLinux Hackermanhistorical reasons, mostly11:47:43
@linus:schreibt.jetztLinux Hackermanthere's a raspberrypi "platform" in nixpkgs which also defines things like a kernel defconfig11:47:53
@linus:schreibt.jetztLinux Hackermanthere are plans to make pkgsCross more consistent, afaik11:48:22
@artemis:arty.chatartemistangentially to this, can i nix-copy-closure (or whatever i actually want if its not this?) to just like, a mounted partition11:53:33
@linus:schreibt.jetztLinux Hackerman nix copy --to /foo will copy things to /foo/nix/store 11:54:00
@artemis:arty.chatartemissweet ok11:54:06
@linus:schreibt.jetztLinux Hackermanusing chroot stuff11:54:15
@linus:schreibt.jetztLinux Hackermanif you want to boot from it, make sure to do the copying as root11:54:27
@linus:schreibt.jetztLinux Hackermanotherwise the ownership will be on your user and things will be unhappy11:54:44
@artemis:arty.chatartemisis that the correct way to update a NixOS partition too? Like will that "activate" the new config or what have you11:54:55
@artemis:arty.chatartemisor do i need to do something else on top to do that11:55:04
@linus:schreibt.jetztLinux Hackermanwith cross it's a bit tricky11:55:33
@artemis:arty.chatartemisright now im updating a crossbuilt pi2 i have but im doing that over the network with deploy-rs11:55:36
@artemis:arty.chatartemisand deploy-rs handles all the specific nix stuff for me so i only sort of know what its actually doing11:56:05
@artemis:arty.chatartemisbut it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything11:56:25
@linus:schreibt.jetztLinux Hackermanbecause the tools that generate bootloader config and stuff are only compiled for the target arch, so you can't properly switch to the config from a different machine11:56:25
@artemis:arty.chatartemis* but it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything, and activates it11:56:29

Show newer messages


Back to Room ListRoom Version: 6