diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-16 01:09:42 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-24 05:58:40 -0600 |
| commit | 8e55707a78495c288484b45c3725ee2e0f4121f7 (patch) | |
| tree | 966e9f9983fb605b833ce238214e24625f010c69 | |
| parent | b21c321a059e11edeece1c90d97776bb0716d7a0 (diff) | |
flake: set ISA extensions in riscv toolchain
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -51,7 +51,18 @@ ]; }; - rv32Pkgs = pkgs.pkgsCross.riscv32-embedded; + rv32Pkgs = import nixpkgs { + inherit system; + config.allowUnsupportedSystem = true; + + crossSystem = { + config = "riscv32-none-elf"; + gcc = { + arch = "rv32imafc"; + abi = "ilp32f"; + }; + }; + }; in { formatter.${system} = pkgs.nixpkgs-fmt; |
