flake: Install the same file that fpga-starter-project-uart installed
This commit is contained in:
parent
7836ac5f3f
commit
8b6ca3accc
17
flake.nix
17
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
|
||||
'';
|
||||
|
||||
}
|
||||
) { };
|
||||
|
|
Loading…
Reference in a new issue