cross compile certain packages to riscv
Some checks failed
Hydra nixosConfigurations.vf2 Hydra build #22170 of nixos-config:pr618:nixosConfigurations.vf2
Some checks failed
Hydra nixosConfigurations.vf2 Hydra build #22170 of nixos-config:pr618:nixosConfigurations.vf2
This commit is contained in:
parent
c5a249ad43
commit
4188b9f82a
2 changed files with 19 additions and 0 deletions
18
machine/vf2/cross-packages.nix
Normal file
18
machine/vf2/cross-packages.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Cross compiled packages for when shit breaks
|
||||
{
|
||||
nixpkgs,
|
||||
lix,
|
||||
...
|
||||
}: let
|
||||
pkgs_x86_64 = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
crossSystem.system = "riscv64-linux";
|
||||
overlays = [lix.overlays.default];
|
||||
};
|
||||
in {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
inherit (pkgs_x86_64) lix nixos-option;
|
||||
})
|
||||
];
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
"${nixos-config}/config"
|
||||
./disko.nix
|
||||
./hardware.nix
|
||||
./cross-packages.nix
|
||||
];
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue