Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project

C++ personal starter project using nix + meson.

what you need

getting started

git clone https://github.com/shuretokki/cpp-template project
cd project

# if you have direnv:
direnv allow

# else, you could just:
nix develop

Configuring the build directory:

meson setup build

You only run this once. Or again if you change meson.build or add new dependencies.

compiling and running

# compile
meson compile -C build

# run
./build/project

Refer to the Meson Quick Start for detailed guide.

adding dependencies

  1. Add the library to buildInputs in flake.nix: Refer to the Nix.dev Flakes Concept Manual for how dependencies map to reproducible outputs.
buildInputs = [ pkgs.spdlog pkgs.new-lib ];
  1. Add it to your meson.build: Refer to the Meson Dependency Documentation for detailed syntax and options.
dependencies: [
    dependency('spdlog'),
    dependency('new-lib'),
],
  1. Reload and reconfigure:
direnv reload # or exit and re-enter nix develop
meson setup build --wipe

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages