blob: b3bbcea2f9eb654d0f557423ec8b29a471e71585 (
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
26
|
{
system,
nixpkgs,
default,
c,
}: let
pkgs = import nixpkgs.outPath {
localSystem = system;
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib-nano";
gcc = {
arch = "rv32i";
};
};
};
in
pkgs.buildPackages.mkShell {
packages = with pkgs.buildPackages; [
qtrvsim
gcc
pkg-config
];
inputsFrom = [default c];
meta.platforms = nixpkgs.lib.platforms.linux;
}
|