Nikolay Puzanov 686d12bf81 Add sources
2023-06-11 16:15:40 +03:00

20 lines
614 B
Nix

{ 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}
'';
}