fb87 / nixos-orangepi-5x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flake does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'

phaitonican opened this issue · comments

Getting this error:

error: flake 'git+file:///home/cenk/nixos-orangepi-5x' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'

Any idea? sorry im very noob

This repository provides a packages.aarch64-linux.default instead of packages.x86_64-linux.default, which assumes that you are compiled natively: https://github.com/fb87/nixos-orangepi-5x/blob/v5.10.x/flake.nix#L398C7-L398C37

And cross-platform compilation needs to modify the content of flake.nix.
If you are not familiar with NixOS, I suggest you refer to this document:

Https://nixos-and-flakes.thiscute.world/development/cross-platform-compilation

Thanks very much I will try to figure this out thanks :)