Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

zimbatm/nix-cpp-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix C++ demo

This little project demonstrates how to use Nix and CMake together to manage a C++ project.

Requirements

A Linux machine with Nix installed. That's it.

Responsibilities

  • CMake: build the project incrementally during development
  • Nix: pull external dependencies

Development

Run nix-shell at the root the project to load all the external depedencies. Then invoke cmake to build the project.

Updating sources

Use ./nix/update-src path/to/package.nix to pull the latest version of a package. Eg: ./nix/update-src ./nix/cppkafka.nix.

Production

Run nix-build to produce the release artifacts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published