By adding a `shell.nix` file in the root directory of the source,
NixOs (https://nixos.org/) users can get a ready for development
environment by simply running `nix-shell` from the source tree.
This is really convenient as the installation of needed packages
is just done as user and transparently for the user/developer.
Ticket: #7669
--- /dev/null
+let
+ pkgs = import <nixpkgs> {};
+
+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
+ #'';
+}