aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devShells/apo.nix9
-rw-r--r--nixos/modules/compile.nix2
2 files changed, 2 insertions, 9 deletions
diff --git a/devShells/apo.nix b/devShells/apo.nix
index b036c9b..c1049a8 100644
--- a/devShells/apo.nix
+++ b/devShells/apo.nix
@@ -15,19 +15,12 @@
};
};
};
- #mipsPkgs = import nixpkgs.outPath {
- # localSystem = system;
- # crossSystem = {
- # config = "mips-none-elf";
- # libc = "newlib-nano";
- # };
- #};
in
pkgs.buildPackages.mkShell {
packages = with pkgs; [
qtrvsim
+ glibc.static
riscvPkgs.buildPackages.gcc
- #mipsPkgs.buildPackages.gcc
];
inputsFrom = [default c];
meta.platforms = nixpkgs.lib.platforms.linux;
diff --git a/nixos/modules/compile.nix b/nixos/modules/compile.nix
index 45cc9e6..18ff6f5 100644
--- a/nixos/modules/compile.nix
+++ b/nixos/modules/compile.nix
@@ -19,7 +19,7 @@ with lib; {
cores = 0;
};
- boot.binfmt.emulatedSystems = ["armv7l-linux" "aarch64-linux"];
+ boot.binfmt.emulatedSystems = ["armv7l-linux" "aarch64-linux" "riscv32-linux"];
environment.systemPackages = with pkgs; [
# Tools