add sqlite
This commit is contained in:
parent
381db25621
commit
d2f8af619f
|
@ -37,10 +37,15 @@
|
||||||
};
|
};
|
||||||
in mkShell {
|
in mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
sqlite
|
||||||
|
|
||||||
|
# Dev tools
|
||||||
just
|
just
|
||||||
flutter
|
|
||||||
vscodeCustom
|
vscodeCustom
|
||||||
|
|
||||||
|
# Flutter
|
||||||
|
flutter
|
||||||
|
|
||||||
# Linux toolchain
|
# Linux toolchain
|
||||||
clang_15
|
clang_15
|
||||||
cmake
|
cmake
|
||||||
|
@ -52,6 +57,7 @@
|
||||||
|
|
||||||
# Zig / webAssembly impl.
|
# Zig / webAssembly impl.
|
||||||
zig
|
zig
|
||||||
|
zls
|
||||||
];
|
];
|
||||||
|
|
||||||
# see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2
|
# see: https://discourse.nixos.org/t/flutter-run-d-linux-build-process-failed/16552/2
|
||||||
|
|
|
@ -22,6 +22,7 @@ pub fn build(b: *std.Build) void {
|
||||||
});
|
});
|
||||||
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
|
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
|
||||||
exe.linkLibrary(raylib_dep.artifact("raylib"));
|
exe.linkLibrary(raylib_dep.artifact("raylib"));
|
||||||
|
exe.linkSystemLibrary("sqlite3");
|
||||||
|
|
||||||
// This declares intent for the executable to be installed into the
|
// This declares intent for the executable to be installed into the
|
||||||
// standard location when the user invokes the "install" step (the default
|
// standard location when the user invokes the "install" step (the default
|
||||||
|
|
|
@ -6,6 +6,9 @@ const raygui = @cImport({
|
||||||
@cDefine("RAYGUI_IMPLEMENTATION", "1");
|
@cDefine("RAYGUI_IMPLEMENTATION", "1");
|
||||||
@cInclude("raygui.h");
|
@cInclude("raygui.h");
|
||||||
});
|
});
|
||||||
|
const sqlite = @cImport({
|
||||||
|
@cInclude("sqlite3.h");
|
||||||
|
});
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
const screen_width = 800;
|
const screen_width = 800;
|
||||||
|
|
Loading…
Reference in a new issue