phaser: remove inappropriate load-after-build code

This commit is contained in:
Sebastien Bourdeauducq 2020-11-09 13:45:36 +08:00
parent 0a11450df3
commit 777b9dbecd
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ in
phaser-fpga = pkgs.stdenv.mkDerivation { phaser-fpga = pkgs.stdenv.mkDerivation {
name = "phaser-fpga"; name = "phaser-fpga";
src = <phaserSrc>; src = <phaserSrc>;
patchPhase = ''
substituteInPlace phaser.py \
--replace "source ../load.tcl" \
""
'';
buildInputs = [ (pkgs.python3.withPackages(ps: [ artiqpkgs.migen artiqpkgs.misoc ])) ] ++ [ vivado ]; buildInputs = [ (pkgs.python3.withPackages(ps: [ artiqpkgs.migen artiqpkgs.misoc ])) ] ++ [ vivado ];
buildPhase = "python phaser.py"; buildPhase = "python phaser.py";