aboutsummaryrefslogtreecommitdiff
path: root/devShells/apo.nix
blob: a840670fd27154a23d1a0677d783998b01f25bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  pkgs,
  default,
  c,
}: let
  riscvPkgs = import pkgs.path {
    localSystem = pkgs.buildPlatform.system;
    crossSystem = {
      config = "riscv32-none-elf";
      libc = "newlib-nano";
      gcc = {
        arch = "rv32i";
      };
    };
  };
in
  pkgs.buildPackages.mkShell {
    packages = with pkgs; [
      qtrvsim
      glibc.static
      riscvPkgs.buildPackages.gcc
    ];
    inputsFrom = [default c];
    meta.platforms = pkgs.lib.platforms.linux;
  }