試著用 nix 當 dependency manager 和開發環境 builder
# ~/.config/nix/nix.conf
experimental-features = nix-command flakeshttps://direnv.net/#basic-installation
sudo apt install direnv# .bashrc
eval "$(direnv hook bash)"# cd $project_dir
direnv allow .# 編譯
nix build
# 開 shell
nix develop
# 或 direnv 會自動處理 shell 環境