JustEnoughMod
|
In JustEnoughMod (JEM) pre-commit hooks are getting generated by a nix dev shell. Simply install nix via your package manager and run in the JEM directory following command (you might need too enable nix-command and flake feature in nix):
This is simpler than using nix, however you do not get the reproducibility and dependency management benefits.
Following programs are required for JEM:
Following programs are required for documentation generation:
Following dependencies ar required for compiling:
Before building JEM you need to initialize meson first.
For building you now just need to run:
After that you can just type:
or run the executable directly.
Another handy script is:
This will run clang-tidy and check your code for possible improvements.
For generating documentation you just need to call:
For setting up the project using nix not other dependency than nix itself is needed. You might need to enable "nix-commands" and "flakes" as experimental features (see nix documentation).
Following command will setup pre-commit and all needed dependencies (recommended for development):
If you want to setup only pre-commit without any other dependency you can run following command (not recommended for development):
Now you can just proceed with Build commands.
You can also build the project automatically into the result directory using
Another option is to directly run the directly after compile without the creation of the result directory:
nix build
and nix run
will recompile the project after every change without any cache. It is not recommend to use this for development, however it is recommend to use this for production.