| 25 Jul 2023 |
@ulli:hrnz.li | moots: are you trying to use aarch64-unknown-linu$-gnueabihf? | 17:46:40 |
@ulli:hrnz.li | because that is not a thing | 17:46:43 |
moots | system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu"; | 17:46:50 |
moots | i think thats right im not sure | 17:46:59 |
@ulli:hrnz.li | that should be fine | 17:47:17 |
@ulli:hrnz.li | is mounts.sh a thing from disko? | 17:47:24 |
moots | maybe, like i said the error vanished after a nixpkgs fmt | 17:47:41 |
@2xsaiko:tchncs.de | moots: yeah, I know why I think | 17:48:18 |
moots | building aarch64-unknown-linux-musl-binutils-2.40, hmm why musl n not glibc | 17:47:54 |
@2xsaiko:tchncs.de | flake-parts gives you packages that don't cross build | 17:48:37 |
@2xsaiko:tchncs.de | so in case this is from some package set instantiated by flake-parts, that won't work | 17:49:07 |
moots | unsure why its not downloading from caches though, it seems to be building a lot atm | 18:02:01 |
moots | also tried adding
nixConfig = {
extra-substituters = [
"https://colmena.cachix.org"
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg="
];
};
it did query them, but didnt seem to download any
| 18:02:22 |
moots | my input is nixpkgs.url = "nixpkgs/nixos-23.05";
and every other input has inputs.nixpkgs.follows = "nixpkgs"; | 18:02:45 |
moots | and accoridng to docs aarch64 should been in the cache | 18:03:28 |
@ulli:hrnz.li | there aren't really any caches for most cross stuff | 18:07:43 |
@ulli:hrnz.li | native aarch64 stuff is on the cache. | 18:08:11 |
moots | oh so cross built stuff has different hashes ? hm can i only cross build missing packages somehow? | 18:13:01 |
@ulli:hrnz.li | no | 18:15:38 |
@ulli:hrnz.li | when instantiating, nix doesn't know yet what's available on the cache and what isn't | 18:16:05 |
@ulli:hrnz.li | <obligatory * screams in impurity * > | 18:16:39 |
@ulli:hrnz.li | but you can generally use a native system and manually add a few packages from crossPkgs to that. | 18:17:25 |
@ulli:hrnz.li | you can also override some of the inputs of the cross-derivation you want to build with the native versions again | 18:19:56 |
moots | hmm tried the binfmt way of emulating aarch64 | 18:24:20 |
moots | ❯ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes
trusted-binary-caches = https://cache.nixos.org
extra-platforms = ["qemu-user"]
❯ ls /proc/sys/fs/binfmt_misc
qemu-aarch64 qemu-arm qemu-hppa qemu-microblaze qemu-mips64 qemu-mipsn32 qemu-ppc qemu-riscv32 qemu-sh4 qemu-sparc32plus qemu-xtensaeb
qemu-aarch64_be qemu-armeb qemu-loongarch64 qemu-microblazeel qemu-mips64el qemu-mipsn32el qemu-ppc64 qemu-riscv64 qemu-sh4eb qemu-sparc64 register
qemu-alpha qemu-hexagon qemu-m68k qemu-mips qemu-mipsel qemu-or1k qemu-ppc64le qemu-s390x qemu-sparc qemu-xtensa status
if thats even viable
| 18:25:13 |
moots | * ❯ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes
trusted-binary-caches = https://cache.nixos.org
extra-platforms = ["qemu-user"]
❯ ls /proc/sys/fs/binfmt_misc
qemu-aarch64 qemu-arm qemu-hppa qemu-microblaze qemu-mips64 qemu-mipsn32 qemu-ppc qemu-riscv32 qemu-sh4 qemu-sparc32plus qemu-xtensaeb
qemu-aarch64_be qemu-armeb qemu-loongarch64 qemu-microblazeel qemu-mips64el qemu-mipsn32el qemu-ppc64 qemu-riscv64 qemu-sh4eb qemu-sparc64 register
qemu-alpha qemu-hexagon qemu-m68k qemu-mips qemu-mipsel qemu-or1k qemu-ppc64le qemu-s390x qemu-sparc qemu-xtensa status
error: a 'aarch64-linux' with features {} is required to build '/nix/store/nq4mx8myrqkz2a4bpmr0gifq8jncq32g-append-initrd-secrets.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range}
if thats even viable
| 18:25:38 |
moots | extra-platforms aarch64-linux also same message | 18:26:14 |
moots | not sure how it could work outsid enixos | 18:26:22 |
@ulli:hrnz.li | I don't think extra-platforms can be set in the user config for multi-user installations | 18:29:51 |
@ulli:hrnz.li | as it really as a setting for the daemon. | 18:29:57 |