@@ -26,19 +26,15 @@ stdenv.mkDerivation {
2626 rm $out/libs/lib*
2727
2828 # Store the original hash
29− orig_hash=$(md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }')
30− echo $orig_hash | cut -c1-8 > $out/hash.md5.orig # for dwarf-therapist
31− echo $orig_hash > $out/full-hash-orig.md5 # for dfhack
29+ md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }' > $out/hash.md5.orig
3230
3331 patchelf \
3432 --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
3533 --set-rpath "${libpath}" \
3634 $out/libs/Dwarf_Fortress
3735
38− # Store new hash
39− patched_hash=$(md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }')
40− echo $patched_hash | cut -c1-8 > $out/hash.md5.patched # for dwarf-therapist
41− echo $patched_hash > $out/full-hash-patched.md5 # for dfhack
36+ # Store the new hash
37+ md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }' > $out/hash.md5
4238 '';
4339
4440 passthru = { inherit baseVersion patchVersion dfVersion; };