Patch dwarf-fortress-unfuck to build in debug (pending upstream fix)
This commit is contained in:
@@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
||||
src = ./dwarf-fortress-init.in;
|
||||
inherit env;
|
||||
exe = if stdenv.isLinux then "libs/Dwarf_Fortress"
|
||||
else "dwarfort.exe";
|
||||
else "dwarfort.exe";
|
||||
};
|
||||
|
||||
runDF = ./dwarf-fortress.in;
|
||||
@@ -83,3 +83,4 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preferLocalBuild = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,5 +7,6 @@ for i in dfhack.init-example dfhack-config/default hack/* stonesense/*; do
|
||||
done
|
||||
|
||||
cd "$DF_DIR"
|
||||
LD_LIBRARY_PATH="$env_dir/hack/libs:$env_dir/hack:$LD_LIBRARY_PATH" \
|
||||
LD_PRELOAD="$env_dir/hack/libdfhack.so:$LD_PRELOAD" exec $env_dir/libs/Dwarf_Fortress "$@"
|
||||
export LD_LIBRARY_PATH="$env_dir/hack/libs:$env_dir/hack:$LD_LIBRARY_PATH"
|
||||
export LD_PRELOAD="$env_dir/hack/libdfhack.so:$LD_PRELOAD"
|
||||
exec "$env_dir/libs/Dwarf_Fortress" "$@"
|
||||
|
||||
Reference in New Issue
Block a user