HeavyX/examples/helloworld_ecp5.nix

12 lines
357 B
Nix
Raw Normal View History

2019-06-06 17:25:11 +08:00
{ pkgs, hx }:
2019-04-26 18:21:47 +08:00
pkgs.runCommand "helloworld-bitstream" {
buildInputs = [ (pkgs.python3.withPackages(ps: [hx.nmigen hx.nmigen-boards hx.heavycomps])) pkgs.yosys ];
2019-04-26 18:21:47 +08:00
}
''
export YOSYS=${pkgs.yosys}/bin/yosys
export NEXTPNR_ECP5=${pkgs.nextpnr}/bin/nextpnr-ecp5
export ECPPACK=${pkgs.trellis}/bin/ecppack
python ${./helloworld_ecp5.py} $out
''