fix build environment
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
i do not exist 2026-04-23 02:24:33 +03:00
parent c9b9ff1519
commit b0fb9f013d
4 changed files with 11 additions and 7 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

5
.gitignore vendored
View file

@ -1,3 +1,4 @@
target
cov
*.profraw *.profraw
.direnv
cov
target

View file

@ -2,8 +2,9 @@ export LLVM_PROFILE_FILE := "cov/cargo-test-%p-%m.profraw"
grcov-binary := "--binary-path ./target/coverage/deps/" grcov-binary := "--binary-path ./target/coverage/deps/"
grcov-ignore := "--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'" grcov-ignore := "--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'"
[private]
default: default:
just -l @just -l
bacon: bacon:
bacon -s bacon -s
@ -29,6 +30,7 @@ doc:
cargo doc cargo doc
example-tui-00: example-tui-00:
cargo run -p tengri_tui --example tui_00 cargo run --example tui_00
example-tui-01: example-tui-01:
cargo run -p tengri_tui --example tui_01 cargo run --example tui_01

View file

@ -2,8 +2,8 @@
{pkgs?import<nixpkgs>{}}:let {pkgs?import<nixpkgs>{}}:let
stdenv = pkgs.clang19Stdenv; stdenv = pkgs.clang19Stdenv;
name = "tengri"; name = "tengri";
nativeBuildInputs = [ pkgs.pkg-config pkgs.libclang pkgs.mold ]; nativeBuildInputs = [ pkgs.pkg-config pkgs.clang pkgs.libclang pkgs.mold ];
buildInputs = [ pkgs.libclang ]; buildInputs = [ pkgs.libclang pkgs.jack2 ];
LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib"; LIBCLANG_PATH = "${pkgs.libclang.lib.outPath}/lib";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath []; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [];
in pkgs.mkShell.override { in pkgs.mkShell.override {