build(nix/flake): adding the path for cargo & database stuff

This commit is contained in:
Raphael 2026-02-12 22:34:36 +01:00
parent a92e84c80f
commit d7f13af079
No known key found for this signature in database

View file

@ -70,6 +70,12 @@
shellHook = ''
export RUST_BACKTRACE=1;
export RUST_LOG="debug";
export PATH="$CARGO_HOME/bin:$PATH";
if command -v brew &> /dev/null; then
export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/postgresql@15/lib"
export CPPFLAGS="-I/opt/homebrew/opt/postgresql@15/include"
fi
printf "\n\033[0;90mRust env loaded for: \033[38;5;220m${system}\033[0;90m [rustc: $(rustc --version | awk '{print $2}') | cargo: $(cargo --version | awk '{print $2}')]\033[0m\n"
'';
};