-
Notifications
You must be signed in to change notification settings - Fork 235
Build with nix
Jörg Thalheim edited this page Jan 27, 2022
·
3 revisions
The following shell.nix
might help to build the project from source:
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [
bashInteractive
cmake
ninja
meson
];
buildInputs = [
tbb
libbsd
numactl
openssl
luajit
];
RTE_KERNELDIR = "${linux.dev}/lib/modules/${linux.modDirVersion}/build";
NIX_CFLAGS_COMPILE = "-Wno-error=maybe-uninitialized";
}
$ git clone --recursive https://github.com/emmericp/MoonGen/
$ cd build
$ nix-shell # after adding shell.nix from above
$ cd libmoon
$ bash build.sh --moongen