Next-generation FPGA SoC toolkit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
609 B

2 years ago
  1. { }:
  2. let
  3. pkgs = import <nixpkgs> { overlays = [ (import ./overlay.nix) ]; };
  4. hx = import ./default.nix { inherit pkgs; };
  5. in
  6. pkgs.mkShell {
  7. buildInputs = [
  8. hx.binutils-riscv32 hx.binutils-riscv64 hx.gcc-riscv32 hx.gcc-riscv64 pkgs.rustc pkgs.cargo hx.rust-riscv32i-crates
  9. (pkgs.python3.withPackages(ps: [hx.nmigen hx.nmigen-boards hx.heavycomps hx.minerva]))
  10. pkgs.yosys
  11. pkgs.nextpnr
  12. pkgs.trellis
  13. pkgs.openocd
  14. ];
  15. RUSTFLAGS="-L ${hx.rust-riscv32i-crates}/lib/rustlib/riscv32i-unknown-none-elf/lib -C linker=riscv32-unknown-elf-ld -C link-arg=-Tlink.x";
  16. }