From 8b6ca3accc30b7ed72bc9aecb3bef093d16033bc Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 3 Apr 2025 22:27:27 +0300 Subject: [PATCH] flake: Install the same file that fpga-starter-project-uart installed --- flake.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 + ''; } ) { };