lopsided98_ has quit [Remote host closed the connection]
lopsided98_ has joined #nixos-aarch64
lopsided98_ has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
Piece_Maker has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 260 seconds]
Piece_Maker is now known as Acou_Bass
Sonarpulse has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
vcunat has joined #nixos-aarch64
shad has quit [Quit: No Ping reply in 180 seconds.]
shad has joined #nixos-aarch64
boomshroom has joined #nixos-aarch64
<boomshroom>
Hello!
* clever
waves
<boomshroom>
How can I get an aarch64 linux toolchain on my x86_64 NixOS installation?
<clever>
boomshroom: do you want a cross-compiler, or a native aarch64->aarch64 compiler?, my qemu-user stuff can be used to make the native compiler work
<boomshroom>
clever: Cross-compiler.
<boomshroom>
I want to test the official instructions before I set up everything with Nix.
<clever>
i think you do something like import <nixpkgs> { crossSystem = { system = "aarch64-linux"; }; } and then it will automatically use a cross-compiler in every derivation
<boomshroom>
clever: Part of the problem is I also want arm-linux-gnueabi in the same environment.
<clever>
mixing the 2 might be difficult, can you just switch to a different nix-shell when you get to that step?
<boomshroom>
clever: I'll try that.
<boomshroom>
I tried 'nix-shell -E '(import <nixpkgs> { crossSystem = { system = "arm-linux"; }; }).hello'' and got back 'error: attribute 'kernelArch' missing'
<boomshroom>
Looking at lib/systems/platforms.nix, it shouldn't be too hard to add a switch platform to the list. Is it possible to set kernel patches or a kernel derivation for a platform?
<boomshroom>
Lovely. I'm using a non-standard platform so it has to compile GCC from scratch.