Nix logo with 2 arrows, each pointing to the Rust logo, and Docker.

Create Rust binaries, and Docker images with Nix

Introduction A few days ago, I released the abomination of a project called emojied (website, repo) to the world. It went great, I’m glad people found it funny. However, I’m not too pleased with the deployment process: from building the project to shipping it. I made heavy use of Docker to build the necessary static assets, and binary. Here’s the current setup: Dev environment PostgreSQL (handled by NixOS) rustc, openssl, cargo, etc....

April 11, 2022 · 13 min · sekun
An image of a URL containing emojis

What I learned from building an emoji URL shortener in Rust

So, I made an emoji URL shortener with Rust and shared it in some places including the Rust community. And oh man this is the first thing I made that got this many visitors which is pretty nice knowing that people were curious enough to try it despite them probably feeling disgusted from me bringing such a thing to existence. Repo: Website: Some glowing ✨ reviews:...

April 11, 2022 · 17 min · sekun
Post cover saying the phrase 'packaging pre-built, static binaries with Nix flake'

Packaging Pre-built Binaries with Nix Flake

Here’s the scenario: You have a nix environment all set up with all the dependencies you need for working on your next awesome project. All but one. nixpkgs doesn’t have the version you want. Fortunately, there’s a static binary file on their GitHub page. So should you just manually download it every time you set your project up, or should you write a Nix package that builds it from source?...

March 6, 2022 · 12 min · sekun