Nix: Build and Distribute a Rust App on GitHub (How-To)

Опубликовано: 26 Апрель 2026
на канале: PageKey
1,685
41

This video shows you how to build a Rust 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/...

Timestamps:
0:00 Intro
0:08 DEMO - What We're Building
0:59 Overview
1:22 PageKey: Take Back Tech
2:23 1. Creating the Rust Application (Directory Tree)
2:43 1. Creating the Rust Application (main.c)
2:48 1. Creating the Rust Application (default.nix)
3:22 1. Creating the Rust Application (DEMO)
3:40 2. Running in NixOS Locally (configuration.nix)
4:28 2. Running in NixOS Locally (DEMO)
4:52 3. Testing Using default.nix
5:33 3. Testing Using default.nix (DEMO)
6:03 4. Building from GitHub
6:24 4. Building from GitHub (default.nix - app)
6:54 4. Building from GitHub (default.nix - testbed)
7:48 4. Building from GitHub (DEMO)
8:10 4. Building from GitHub (Testing on NixOS)
8:49 That's it!


---


GitHub: https://github.com/pagekey

Website: https://pagekey.io

Discord:   / discord  

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!