Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / dwarf-fortress / wrapper / dfhack.in
blob0f74674baf29924ad9e1a78f580e2c3b19a7b653
1 #!@stdenv_shell@ -e
3 source @dfInit@
5 for i in *.init *.init-example dfhack-config/default dfhack-config/init hack/* stonesense/*; do
6   if [ -e "$i" ]; then update_path "$i"; fi
7 done
9 cd "$DF_DIR"
10 LD_LIBRARY_PATH="$env_dir/hack/libs:$env_dir/hack${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
11   LD_PRELOAD="$env_dir/hack/libdfhack.so:$LD_PRELOAD" exec $env_dir/libs/Dwarf_Fortress "$@"