Quick reproducible zig dev env using nix flakes
Want this great feeling of entering a directory and having all your dev setup done but can never remember how to set up nix flakes ?
What you’ll need is, in addition to a working direnv with nix and nix flake enabled, is:
.envrc:
use flake .gitignore:
.direnv/ flake.nix (this nixpkgs hash points to the first revision with zig 0.9 present):
{ inputs = { nixpkgs = { type = "github"; owner = "nixos"; repo = "nixpkgs"; ref = "e1eeb53e64159fbb2610ba7810ed511e4d5c10ca"; }; flake-compat = { url = "github:edolstra/flake-compat"; flake = false; }; }; outputs = { self, nixpkgs, flake-compat }: let pkgs = nixpkgs.
[Read More]