2024-11-22 17:57:25 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
pkgs_x86_64_2 = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
crossSystem.system = "riscv64-linux";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
2024-11-24 10:13:57 +00:00
|
|
|
inherit (pkgs_x86_64) lix pandoc;
|
2024-11-22 17:57:25 +00:00
|
|
|
inherit (pkgs_x86_64_2) nixos-option;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
environment.etc."nix/inputs/nixpkgs-overlays/riscv-cross-packages.nix".text = ''
|
|
|
|
self: _: let pkgs_x86_64 = import <nixpkgs> {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
crossSystem.system = "riscv64-linux";
|
|
|
|
overlays = [self.inputs.lix.overlays.default];
|
|
|
|
}
|
|
|
|
pkgs_x86_64_2 = import <nixpkgs> {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
crossSystem.system = "riscv64-linux";
|
|
|
|
overlays = [];
|
|
|
|
}; in {
|
2024-11-24 10:13:57 +00:00
|
|
|
inherit (pkgs_x86_64) lix pandoc;
|
2024-11-22 17:57:25 +00:00
|
|
|
inherit (pkgs_x86_64_2) nixos-option;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|