2024-08-24 15:00:02 +02:00
|
|
|
{ nixpkgs, ... }:
|
|
|
|
|
|
|
|
let inherit (nixpkgs) lib;
|
|
|
|
in lib.mapAttrs (system: platform: lib.systems.elaborate platform) {
|
|
|
|
"x86_64-linux" = {
|
|
|
|
system = "x86_64-linux";
|
2024-10-13 11:24:31 +02:00
|
|
|
config = "x86_64-unknown-linux-musl";
|
|
|
|
useLLVM = true;
|
|
|
|
linker = "lld";
|
|
|
|
gcc.arch = "x86-64-v3";
|
2024-08-24 15:00:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"aarch64-linux" = {
|
|
|
|
system = "aarch64-linux";
|
2024-10-13 11:24:31 +02:00
|
|
|
config = "aarch64-unknown-linux-musl";
|
|
|
|
useLLVM = true;
|
|
|
|
linker = "lld";
|
|
|
|
gcc.arch = "armv8-a";
|
2024-08-24 15:00:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"riscv64-linux" = {
|
|
|
|
system = "riscv64-linux";
|
2024-10-13 11:24:31 +02:00
|
|
|
config = "riscv64-unknown-linux-musl";
|
|
|
|
useLLVM = true;
|
|
|
|
linker = "lld";
|
|
|
|
gcc.arch = "rv64imacfd";
|
2024-08-24 15:00:02 +02:00
|
|
|
};
|
|
|
|
}
|