{ description = "Advent of Code 2023"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; zig = pkgs.zig_0_11; buildZigPackage = import ./nix/build-zig-package.nix { inherit (pkgs) stdenv; inherit zig; }; in { devShells.default = pkgs.mkShellNoCC { buildInputs = [ zig pkgs.zls ]; }; packages.default = buildZigPackage { name = "aoc23"; src = pkgs.nix-gitignore.gitignoreSource [ ] ./.; }; }); }