ysyx-workbench/npc/flow-simlib.nix
xinyangli 64aee9ae21
Some checks failed
Run CTests within npc / npc-test (flow) (push) Failing after 8s
Build abstract machine with nix / build-packages (abstract-machine) (push) Failing after 14s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 41s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 9s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 8s
Run CTests within npc / npc-test (flow-simlib) (push) Failing after 7s
npc,ci: add npc to nix packages
2024-08-14 17:01:37 +08:00

47 lines
850 B
Nix

{ flow
, cmake
, ninja
, nvboard
, cli11
, flex
, bison
, verilator
, spdlog
, mini-gdbstub
, stdenv
, lib
, topmodule ? "Flow"
}:
stdenv.mkDerivation {
pname = "npc-flow-simlib";
version = "0.0.0";
src = ./.;
nativeBuildInputs = [
cmake
ninja
flex
bison
nvboard
verilator
flow
];
buildInputs = [
cli11
spdlog
mini-gdbstub
];
cmakeFlags = with lib; [
(cmakeBool "ENABLE_YSYX_GIT_TRACKER" false)
(cmakeBool "BUILD_CHISEL_EMIT_TARGET" false)
(cmakeOptionType "string" "TOPMODULE" "${topmodule}")
(cmakeOptionType "string" "CHISEL_OUTPUT_VERILATOR_CONF" "${flow}/share/conf.vlt")
(cmakeOptionType "string" "CHISEL_OUTPUT_TOPMODULE" "${flow}/share/${topmodule}.sv")
(cmakeOptionType "string" "CHISEL_OUTPUT_DIR" "${flow}/share")
];
enableParallelBuilding = true;
}