@@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
51 # Store the original hash for dwarf-therapist
51 # Store the original hash for dwarf-therapist
52 echo $(md5sum $out/share/df_linux/libs/Dwarf_Fortress | cut -c1-8) > $out/share/df_linux/hash.md5.orig
52 echo $(md5sum $out/share/df_linux/libs/Dwarf_Fortress | cut -c1-8) > $out/share/df_linux/hash.md5.orig
53 # Fix rpath
53 # Fix rpath
54− patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.glibc ]}:$out/share/df_linux/libs" $out/share/df_linux/libs/Dwarf_Fortress
54+ patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.gcc stdenv.glibc ]}:$out/share/df_linux/libs" $out/share/df_linux/libs/Dwarf_Fortress
55 cp -f ./git-export/build/libgraphics.so $out/share/df_linux/libs/libgraphics.so
55 cp -f ./git-export/build/libgraphics.so $out/share/df_linux/libs/libgraphics.so
57 cp $permission $out/share/df_linux/nix_permission
57 cp $permission $out/share/df_linux/nix_permission
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
87 # now run Dwarf Fortress!
87 # now run Dwarf Fortress!
88− export LD_LIBRARY_PATH=\${stdenv.gcc}/lib:${SDL}/lib:${SDL_image}/lib/:${SDL_ttf}/lib/:${gtk2}/lib/:${glib}/lib/:${mesa}/lib/:${openal}/lib/:${libsndfile}/lib:\$DF_DIR/df_linux/libs/
88+ export LD_LIBRARY_PATH=\${stdenv.cc}/lib:${SDL}/lib:${SDL_image}/lib/:${SDL_ttf}/lib/:${gtk2}/lib/:${glib}/lib/:${mesa}/lib/:${openal}/lib/:${libsndfile}/lib:\$DF_DIR/df_linux/libs/
90 export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
90 export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
91 #export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing.
91 #export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing.