diff --git a/flake.lock b/flake.lock index d671efe..b7f899b 100644 --- a/flake.lock +++ b/flake.lock @@ -51,11 +51,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1783475452, - "narHash": "sha256-3S92fSuv32mjJz2Qb2F4405c21J55F4NIphz5K6hxco=", + "lastModified": 1784525419, + "narHash": "sha256-yocJ4I4Kd4as0UPMFs9P7laPvvA2x/Bj8EW46iW3VVM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "05988b07fb05cbcb50be6bce197b4b5f75b5e61b", + "rev": "a16c3fde2ffeab7f6326f50f460aaffde7ae066d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index bde799f..c3c2a16 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,8 @@ pkgs.tree-sitter-grammars.tree-sitter-html.src; css-grammar = mkGrammarStaticLib "tree-sitter-css" pkgs.tree-sitter-grammars.tree-sitter-css.src; + odin = pkgs.unstable.odin; + ols = pkgs.unstable.ols; in { _module.args.pkgs = import nixpkgs { @@ -108,7 +110,7 @@ src = ./.; nativeBuildInputs = [ - pkgs.odin + odin pkgs.pkg-config ]; @@ -143,9 +145,7 @@ }; devShells.default = pkgs.mkShell { - buildInputs = with pkgs; [ - odin - ols + buildInputs = [odin ols ] ++ (with pkgs; [ cmark tree-sitter @@ -153,7 +153,7 @@ unstable.helix typescript-language-server vscode-langservers-extracted - ]; + ]); shellHook = '' export LIBRARY_PATH="${html-grammar}/lib:${css-grammar}/lib:$LIBRARY_PATH" diff --git a/site.odin b/site.odin index 18a1409..14b2237 100644 --- a/site.odin +++ b/site.odin @@ -70,7 +70,7 @@ Flags :: struct { } init_site :: proc(site: ^Site, args: []string) { - mem.dynamic_arena_init(&site.arena, alignment = 64) + mem.dynamic_arena_init(&site.arena) alloc := site_allocator(site) // Set defaults