diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-01-23 23:57:58 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-26 03:06:57 +0300 |
commit | 82a0dde83c1624dabd74a0bf39dd5f7504493f3f (patch) | |
tree | 6ea7c9a2d69c47932b40e0e5308ebd8026dd1b3e /pkgs/games/dwarf-fortress/game.nix | |
parent | d3b642ce9ad056b60d8cfa576dd3fa800ec57ba4 (diff) |
dwarf-fortress: remove short md5 sums
Diffstat (limited to 'pkgs/games/dwarf-fortress/game.nix')
-rw-r--r-- | pkgs/games/dwarf-fortress/game.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/games/dwarf-fortress/game.nix b/pkgs/games/dwarf-fortress/game.nix index 06154e1e57a0..7e0c1b34af74 100644 --- a/pkgs/games/dwarf-fortress/game.nix +++ b/pkgs/games/dwarf-fortress/game.nix @@ -26,19 +26,15 @@ stdenv.mkDerivation { rm $out/libs/lib* # Store the original hash - orig_hash=$(md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }') - echo $orig_hash | cut -c1-8 > $out/hash.md5.orig # for dwarf-therapist - echo $orig_hash > $out/full-hash-orig.md5 # for dfhack + md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }' > $out/hash.md5.orig patchelf \ --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \ --set-rpath "${libpath}" \ $out/libs/Dwarf_Fortress - # Store new hash - patched_hash=$(md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }') - echo $patched_hash | cut -c1-8 > $out/hash.md5.patched # for dwarf-therapist - echo $patched_hash > $out/full-hash-patched.md5 # for dfhack + # Store the new hash + md5sum $out/libs/Dwarf_Fortress | awk '{ print $1 }' > $out/hash.md5 ''; passthru = { inherit baseVersion patchVersion dfVersion; }; |