Build & Share C++ App with Nix on GitHub

Learn how to build and distribute a simple C++ app using Nix. Follow this guide to download sources and publish on GitHub. πŸš€

Build & Share C++ App with Nix on GitHub
PageKey
998 views β€’ Feb 7, 2025
Build & Share C++ App with Nix on GitHub

About this video

In this video, we walk through building and distributing the simplest possible C++ app using Nix. By the end, you should know how to use Nix to download source code and build it into an executable without cloning any repos to specific paths on your computer.

Article/code for this video: https://github.com/pagekey/education/tree/main/180-Nix-Package-Cpp

Timestamps:
0:00 Intro
0:03 DEMO - What We're Building
0:49 Overview
1:09 PageKey: Take Back Tech
2:02 1. Creating the C++ Application (Directory Tree)
2:12 1. Creating the C++ Application (main.cpp)
2:18 1. Creating the C++ Application (default.nix)
2:41 1. Creating the C++ Application (DEMO)
2:55 2. Running in NixOS Locally (configuration.nix)
3:43 2. Running in NixOS Locally (DEMO)
4:00 3. Testing Using default.nix
4:31 3. Testing Using default.nix (DEMO)
5:06 3. Testing Using default.nix (multiple apps)
5:45 4. Building from GitHub
6:28 4. Building from GitHub (DEMO)
6:42 4. Building from GitHub (Testing on NixOS)
8:28 That's it!






GitHub: https://github.com/pagekey

Website: https://pagekey.io

Discord: https://discord.gg/5m5yFgDPF5

PageKey is a channel where we take back tech by building our own versions of the products and services we all use every single day.

If you want to get involved in contributing, consider joining our Discord.

We can discuss what you want to work on and get you involved!

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

998

Likes

32

Duration

8:55

Published

Feb 7, 2025

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now