ryan4yin / nixos-rk3588

Minimal NixOS running on RK3588/RK3588s based SBC(Orange Pi 5 Plus, Orange Pi 5, Rock 5A, etc)
MIT License
156 stars 28 forks source link

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

Closed phaitonican closed 1 year ago

phaitonican commented 1 year ago

Hey sorry I have very less knowledge about this stuff. I wanted to compile my own version of this to add custom programs and configs etc...

How I (cross)compile this from a x86-64 NixOS machine as easy as possible?

Thank you very much.

EDIT: Getting this error on nix build:

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

ryan4yin commented 1 year ago

Just follow the README, this project is cross-compiled by default.

phaitonican commented 1 year ago

Yes but I get this error when trying to build:

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

I thought it was because of some cross compilation stuff but maybe you have any idea would highly appreciate. Thanks!

ryan4yin commented 1 year ago

error: flake 'git+file:///home/cenk/nixos-orangepi-5x' does not provide attribute

@phaitonican The error shows you are using fb87/nixos-orangepi-5x instead of mine, and the build command provieded by my README is not nix build.

phaitonican commented 1 year ago

Thank you very much I accidently opened this issue in wrong repo. Yea the readme there is very confusing and i ask whats the command for it if not nix build its more like nix build .#something but either way his flake is not made for cross compilation on x86_64 so I will try to figure out still thank you and if you got any help for other repo I would highly appreciate thanks.