mirror of https://github.com/OISF/suricata
misc: add a shell.nix file
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: #7669pull/13201/head
parent
97eaeef7d8
commit
90a08ecfc3
@ -0,0 +1,46 @@
|
|||||||
|
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
|
||||||
|
#'';
|
||||||
|
}
|
Loading…
Reference in New Issue