Initial commit

This commit is contained in:
Nikolay Puzanov
2022-11-17 13:02:15 +03:00
commit a67cca5aa8
13 changed files with 361 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
unstable = import <unstable> {};
flags-file = "compile_flags.txt";
in
mkShell {
packages = [ gnumake unstable.verilator ];
shellHook = ''
echo -n > ${flags-file}
echo -DVM_TRACE=1 >> ${flags-file}
echo -xc++ >> ${flags-file}
echo -I./obj_dir >> ${flags-file}
echo -I${unstable.verilator}/share/verilator/include >> ${flags-file}
echo -I${clang}/resource-root/include >> ${flags-file}
echo -I${glibc.dev}/include >> ${flags-file}
'';
}