Welcome to video #11 in our NixOS configuration series! In this episode, we're diving into the fundamentals of creating custom packages for NixOS. Whether you're a system administrator, a developer, or just NixOS-curious, this tutorial will demystify the packaging process and set you up for more complex builds in the future.
You can find the code here: Code: https://code.m3tam3re.com/m3tam3re/mi...
🛠️ What You'll Learn:
✓ Understanding NixOS derivations and their role in package creation
✓ Building a basic package using Nix expressions
✓ Managing dependencies in your custom packages
✓ Using wrappers to handle runtime dependencies
✓ Optimizing and structuring your Nix packages
⏱ Timeline:
00:00 Introduction to NixOS Packaging
00:59 Setting Up Your First Package
02:01 Understanding Derivations and Build Phases
03:19 Building and Testing Your Package
07:05 Adding Dependencies to Your Package
08:33 Creating a Wrapper for Runtime Dependencies
12:07 Optimizing Your Package
13:50 Conclusion and Next Steps
🔗 Useful Links:
Nixpkgs Manual: https://nixos.org/manual/nixpkgs/stable/
Nix Pills (packaging guide): https://nixos.org/guides/nix-pills/
👀 Coming Up Next:
Creating a package from a GitHub-hosted shell script
🔔 Don't forget to subscribe for more in-depth NixOS content!
👍 If you found this video helpful, give it a like to support more advanced NixOS tutorials.
🤝 Connect With Me:
All my links: https://links.m3tam3re.com/
💡 Join Our Community:
Every view, comment, and share helps grow our community of NixOS enthusiasts and packaging experts. Let's demystify NixOS packaging together!
#NixOS #Packaging #DevOps #SystemAdministration #Linux #OpenSource #NixPackages #CustomPackages