!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

894 Members
181 Servers

Load older messages


SenderMessageTime
25 Jul 2023
@moots:matrix.orgmoots * literally just ran nix fmt, had error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range}17:46:32
@moots:matrix.orgmoots * literally just ran nix fmt, had error: a 'aarch64-linux' with features {} is required to build '/nix/store/jwjbb40ddsl8a7f335nz0h09a4inrdyj-mounts.sh.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test, uid-range} as error 17:46:34
@ulli:hrnz.liulli moots: are you trying to use aarch64-unknown-linu$-gnueabihf? 17:46:40
@ulli:hrnz.liullibecause that is not a thing17:46:43
@moots:matrix.orgmoots system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu";17:46:50
@moots:matrix.orgmootsi think thats right im not sure17:46:59
@ulli:hrnz.liullithat should be fine17:47:17
@ulli:hrnz.liulliis mounts.sh a thing from disko?17:47:24
@moots:matrix.orgmootsmaybe, like i said the error vanished after a nixpkgs fmt17:47:41
@2xsaiko:tchncs.de@2xsaiko:tchncs.de moots: yeah, I know why I think 17:48:18
@moots:matrix.orgmootsbuilding aarch64-unknown-linux-musl-binutils-2.40, hmm why musl n not glibc17:47:54
@2xsaiko:tchncs.de@2xsaiko:tchncs.deflake-parts gives you packages that don't cross build17:48:37
@2xsaiko:tchncs.de@2xsaiko:tchncs.deso in case this is from some package set instantiated by flake-parts, that won't work17:49:07
@moots:matrix.orgmootsunsure why its not downloading from caches though, it seems to be building a lot atm18:02:01
@moots:matrix.orgmoots

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:matrix.orgmootsmy input is nixpkgs.url = "nixpkgs/nixos-23.05"; and every other input has inputs.nixpkgs.follows = "nixpkgs";18:02:45
@moots:matrix.orgmootsand accoridng to docs aarch64 should been in the cache 18:03:28
@ulli:hrnz.liullithere aren't really any caches for most cross stuff18:07:43
@ulli:hrnz.liullinative aarch64 stuff is on the cache.18:08:11
@moots:matrix.orgmootsoh so cross built stuff has different hashes ? hm can i only cross build missing packages somehow?18:13:01
@ulli:hrnz.liullino18:15:38
@ulli:hrnz.liulliwhen instantiating, nix doesn't know yet what's available on the cache and what isn't18:16:05
@ulli:hrnz.liulli<obligatory * screams in impurity * >18:16:39
@ulli:hrnz.liullibut you can generally use a native system and manually add a few packages from crossPkgs to that.18:17:25
@ulli:hrnz.liulliyou can also override some of the inputs of the cross-derivation you want to build with the native versions again18:19:56
@moots:matrix.orgmootshmm tried the binfmt way of emulating aarch6418:24:20
@moots:matrix.orgmoots
❯ 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:matrix.orgmoots *
❯ 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:matrix.orgmootsextra-platforms aarch64-linux also same message18:26:14
@moots:matrix.orgmootsnot sure how it could work outsid enixos18:26:22

Show newer messages


Back to Room ListRoom Version: 6