From b0fb9f013d9fd993ba1507767dcecd0005a59a63 Mon Sep 17 00:00:00 2001 From: i do not exist Date: Thu, 23 Apr 2026 02:24:33 +0300 Subject: [PATCH] fix build environment --- .envrc | 1 + .gitignore | 5 +++-- Justfile | 8 +++++--- shell.nix | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/.gitignore b/.gitignore index 8899d91..4f90c40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -target -cov *.profraw +.direnv +cov +target diff --git a/Justfile b/Justfile index 1d5f794..8d7c790 100644 --- a/Justfile +++ b/Justfile @@ -2,8 +2,9 @@ export LLVM_PROFILE_FILE := "cov/cargo-test-%p-%m.profraw" grcov-binary := "--binary-path ./target/coverage/deps/" grcov-ignore := "--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'" +[private] default: - just -l + @just -l bacon: bacon -s @@ -29,6 +30,7 @@ doc: cargo doc example-tui-00: - cargo run -p tengri_tui --example tui_00 + cargo run --example tui_00 + example-tui-01: - cargo run -p tengri_tui --example tui_01 + cargo run --example tui_01 diff --git a/shell.nix b/shell.nix index a4c3248..f34dc1f 100644 --- a/shell.nix +++ b/shell.nix @@ -2,8 +2,8 @@ {pkgs?import{}}:let stdenv = pkgs.clang19Stdenv; name = "tengri"; - nativeBuildInputs = [ pkgs.pkg-config pkgs.libclang pkgs.mold ]; - buildInputs = [ pkgs.libclang ]; + nativeBuildInputs = [ pkgs.pkg-config pkgs.clang pkgs.libclang pkgs.mold ]; + buildInputs = [ pkgs.libclang pkgs.jack2 ]; LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib"; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath []; in pkgs.mkShell.override {