diff --git a/flake.nix b/flake.nix index d014baf..6f8f727 100644 --- a/flake.nix +++ b/flake.nix @@ -25,8 +25,6 @@ trellis, which, yosys, - TOPMODULE ? "mkTop", - makeFlags ? [ ], }: stdenv.mkDerivation { pname = "riscv-bluespec-classic"; @@ -34,7 +32,7 @@ src = ./.; # Versions can be checked with - # `nix eval --json ".#bluespec-joh-template.nativeBuildInputs" | nix-shell -p jq --run jq` + # `nix eval --json ".#riscv-bluespec-classic.nativeBuildInputs" | nix-shell -p jq --run jq` nativeBuildInputs = [ bluespec nextpnr @@ -44,7 +42,18 @@ yosys ]; - # TODO: Build and install something + makeFlags = [ + "fpga" + ]; + + installPhase = '' + runHook preInstall + + mkdir -p "$out" + cp "./ulx3s_fpga/mkTop.bit" "$out/" + + runHook postInstall + ''; } ) { };