Build & Share a C App with Nix on GitHub

Learn to build a C app locally and distribute it using Nix, enabling easy installation with a simple config snippet. πŸš€

Build & Share a C App with Nix on GitHub
PageKey
580 views β€’ Jan 10, 2025
Build & Share a C App with Nix on GitHub

About this video

This video shows you how to build a C application locally, and then package it up so that others can simply copy-and-paste a Nix config snippet to install it from GitHub onto their computers. You don't have to "know a guy" to get it onto Nixpkgs - you can do everything completely from source, dynamically downloaded from GitHub!

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

Timestamps:
0:00 Intro
0:06 DEMO - What We're Building
0:53 Overview
1:16 PageKey: Take Back Tech
1:59 1. Creating the C Application (Directory Tree)
2:08 1. Creating the C Application (main.c)
2:15 1. Creating the C Application (default.nix)
3:33 1. Creating the C Application (DEMO)
3:46 2. Running in NixOS Locally (configuration.nix)
4:39 2. Running in NixOS Locally (DEMO)
4:56 3. Testing Using default.nix
6:28 3. Testing Using default.nix (DEMO)
6:41 4. Building from GitHub
7:16 4. Building from GitHub (default.nix - app)
7:37 4. Building from GitHub (default.nix - testbed)
9:04 4. Building from GitHub (DEMO)
9:40 4. Building from GitHub (Testing on NixOS)
10:04 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

580

Likes

22

Duration

10:47

Published

Jan 10, 2025

Related Trending Topics

LIVE TRENDS

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

Trending Now