2019-06-06 17:25:11 +08:00
|
|
|
{ pkgs, hx }:
|
2019-04-26 18:21:47 +08:00
|
|
|
|
2019-07-03 18:51:45 +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
|
|
|
}
|
2019-07-03 18:51:45 +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
|
|
|
|
''
|