diff --git a/flake.nix b/flake.nix index 0fe3a10..e70959f 100644 --- a/flake.nix +++ b/flake.nix @@ -37,10 +37,15 @@ }; in mkShell { buildInputs = [ + sqlite + + # Dev tools just - flutter vscodeCustom + # Flutter + flutter + # Linux toolchain clang_15 cmake @@ -52,8 +57,9 @@ # Zig / webAssembly impl. zig + zls ]; - + # see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2 shellHook = '' export LD_LIBRARY_PATH=${libepoxy}/lib diff --git a/zig/build.zig b/zig/build.zig index 61a094f..232cf3e 100644 --- a/zig/build.zig +++ b/zig/build.zig @@ -22,6 +22,7 @@ pub fn build(b: *std.Build) void { }); exe.addIncludePath(.{ .path = "3rd-party/raygui/src" }); exe.linkLibrary(raylib_dep.artifact("raylib")); + exe.linkSystemLibrary("sqlite3"); // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default diff --git a/zig/src/main.zig b/zig/src/main.zig index 31da555..d7091b6 100644 --- a/zig/src/main.zig +++ b/zig/src/main.zig @@ -6,6 +6,9 @@ const raygui = @cImport({ @cDefine("RAYGUI_IMPLEMENTATION", "1"); @cInclude("raygui.h"); }); +const sqlite = @cImport({ + @cInclude("sqlite3.h"); +}); pub fn main() !void { const screen_width = 800;