my ziglings
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: init

suri-codes (May 30, 2026, 6:56 PM -0700) f98cf6bc 000e9448

+77 -1
+1
.envrc
··· 1 + use flake
+1
.gitignore
··· 7 7 8 8 # Leave this in here for older zig versions 9 9 /zig-cache/ 10 + .direnv/*
+25
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1779971959, 6 + "narHash": "sha256-R5nauXyqyfRUFiZycFFZdkF7wl6eaUpPLst35+2nJQY=", 7 + "rev": "ec942ba042dad5ef097e2ef3a3effc034241f011", 8 + "revCount": 1004881, 9 + "type": "tarball", 10 + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2605.1004881%2Brev-ec942ba042dad5ef097e2ef3a3effc034241f011/019e7280-271d-7cc0-b0b7-e37f681daa84/source.tar.gz" 11 + }, 12 + "original": { 13 + "type": "tarball", 14 + "url": "https://flakehub.com/f/NixOS/nixpkgs/0" 15 + } 16 + }, 17 + "root": { 18 + "inputs": { 19 + "nixpkgs": "nixpkgs" 20 + } 21 + } 22 + }, 23 + "root": "root", 24 + "version": 7 25 + }
+45
flake.nix
··· 1 + { 2 + description = "A Nix-flake-based Zig development environment"; 3 + 4 + inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0"; # stable Nixpkgs 5 + 6 + outputs = 7 + { self, ... }@inputs: 8 + 9 + let 10 + supportedSystems = [ 11 + "x86_64-linux" 12 + "aarch64-linux" 13 + "x86_64-darwin" 14 + "aarch64-darwin" 15 + ]; 16 + forEachSupportedSystem = 17 + f: 18 + inputs.nixpkgs.lib.genAttrs supportedSystems ( 19 + system: 20 + f { 21 + inherit system; 22 + pkgs = import inputs.nixpkgs { 23 + inherit system; 24 + }; 25 + } 26 + ); 27 + in 28 + { 29 + devShells = forEachSupportedSystem ( 30 + { pkgs, system }: 31 + { 32 + default = pkgs.mkShellNoCC { 33 + packages = with pkgs; [ 34 + zig 35 + zls 36 + lldb 37 + self.formatter.${system} 38 + ]; 39 + }; 40 + } 41 + ); 42 + 43 + formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt); 44 + }; 45 + }
+4
justfile
··· 1 + # https://just.systems 2 + 3 + default: 4 + zig build
+1 -1
exercises/001_hello.zig
··· 16 16 // 17 17 const std = @import("std"); 18 18 19 - fn main() void { 19 + pub fn main() void { 20 20 std.debug.print("Hello world!\n", .{}); 21 21 }