Files
simbench/test-verilator4/shell.nix

20 lines
614 B
Nix
Raw Normal View History

2023-06-11 16:15:40 +03:00
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
flags-file = "compile_flags.txt";
in
mkShell {
packages = [ gnumake verilator ];
shellHook = ''
echo -n > ${flags-file}
echo -DVM_TRACE=1 >> ${flags-file}
echo -xc++ >> ${flags-file}
echo -I./testbench >> ${flags-file}
echo -I${verilator}/share/verilator/include >> ${flags-file}
echo -I${clang}/resource-root/include >> ${flags-file}
echo -I${glibc.dev}/include >> ${flags-file}
'';
}