diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000000..67db96bd66 --- /dev/null +++ b/shell.nix @@ -0,0 +1,46 @@ +let + pkgs = import {}; + +in with pkgs; + pkgs.mkShell { + name = "suri-shell"; + + buildInputs = [ + bash + cargo + rustc + rust-cbindgen + clang + libllvm + automake + autoconf + autogen + libtool + pkg-config + elfutils + jansson + libbpf_0 + libcap_ng + libevent + libmaxminddb + libnet + libnetfilter_log + libnetfilter_queue + libnfnetlink + libpcap + libyaml + lz4 + pcre2 + vectorscan + zlib + ]; + + # the following is needed to be able to build ebpf files + hardeningDisable = [ + "zerocallusedregs" + ]; + + #shellHook = '' + # cargo install cbindgen + #''; +}