File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 153153 "docker"
154154 "llm-client"
155155 "password-manager"
156+ "cross-compile"
156157 ] ;
157158 deploy = {
158159
Original file line number Diff line number Diff line change 1+ { pkgs , ... } :
2+ {
3+ # Enable cross-compilation support
4+ nixpkgs . config . allowUnsupportedSystem = true ;
5+
6+ # Add cross-compilation toolchains
7+ environment . systemPackages = with pkgs ; [
8+ # Cross-compilation tools
9+ qemu
10+
11+ # Build essentials for cross-compilation
12+ binutils-unwrapped
13+ gcc-unwrapped
14+
15+ # Useful for debugging cross-compiled binaries
16+ file
17+ binutils # provides readelf
18+ ] ;
19+
20+ # Enable binfmt for running cross-compiled binaries via QEMU
21+ boot . binfmt . emulatedSystems = [
22+ "aarch64-linux"
23+ "armv7l-linux"
24+ "riscv64-linux"
25+ ] ;
26+ }
You can’t perform that action at this time.
0 commit comments