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,
|
trellis,
|
||||||
which,
|
which,
|
||||||
yosys,
|
yosys,
|
||||||
TOPMODULE ? "mkTop",
|
|
||||||
makeFlags ? [ ],
|
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "riscv-bluespec-classic";
|
pname = "riscv-bluespec-classic";
|
||||||
|
@ -34,7 +32,7 @@
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
# Versions can be checked with
|
# 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 = [
|
nativeBuildInputs = [
|
||||||
bluespec
|
bluespec
|
||||||
nextpnr
|
nextpnr
|
||||||
|
@ -44,7 +42,18 @@
|
||||||
yosys
|
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