Last active
August 23, 2019 18:12
-
-
Save yorickvP/05038cf0b26ec5e095173a85c267bb6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
# point to recent (08/23) nixpkgs | |
native = import (<nixpkgs>) {}; | |
pkgs = import (<nixpkgs>) { | |
crossSystem = { | |
config = "riscv32-none-elf"; | |
libc = "newlib"; | |
platform = (native.platforms.riscv-multiplatform "32") // { gcc.arch = "rv32i"; }; | |
}; | |
}; | |
in | |
pkgs.mkShell { | |
nativeBuildInputs = with native; [ | |
pkgs.buildPackages.gdb | |
nextpnr yosys icestorm | |
wishbone-tool dfu-util | |
screen | |
]; | |
hardeningDisable = [ "all" ]; | |
shellHook = '' | |
alias fomu-reboot="wishbone-tool 0xe0006000 0xac" | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment