All of this information is also included in the README.md
Initialize using
nix flake init --template "github:nulladmin1/nix-flake-templates#cpp-cmake"
OR Initialize using
nix flake init --template "github:nulladmin1/nix-flake-templates#cpp"
This is how the structure of the template looks like:
📦 cpp-cmake
├─ 🔒 Cargo.lock
├─ ⚙️ CMakeLists.txt
├─ 🔒 flake.lock
├─ ⚙️ flake.nix
├─ 📁 src
│ ├─ 📝 hello.cpp
│ ├─ ⚙️ CMakeLists.txt
├─ 🔨 Makefile
├─ 📃 README.md
It includes a really simple Hello World program
nix run
nix develop
(Optional) Format flake.nix
using Alejandra
nix fmt