Merge pull request #97307 from unode/tdm-2.08

tdm: 2.07 -> 2.08

authored by

Lassulus and committed by
GitHub
7c39cf71 607b0ae7

+5 -3
+5 -3
pkgs/games/tdm/default.nix
··· 4 4 5 5 let 6 6 pname = "tdm"; 7 - version = "2.07"; 7 + version = "2.08"; 8 8 9 9 desktop = makeDesktopItem { 10 10 desktopName = pname; ··· 21 21 name = "${pname}-${version}"; 22 22 src = fetchurl { 23 23 url = "https://www.thedarkmod.com/sources/thedarkmod.${version}.src.7z"; 24 - sha256 = "17wdpip8zvm2njz0xrf7xcxl73hnsc6i83zj18kn8rnjkpy50dd6"; 24 + sha256 = "0bmv07j6s6q3m7hnpx7cwrycjkbvlf0y9sg9migakni0jg9yz5ps"; 25 25 }; 26 26 nativeBuildInputs = [ 27 27 p7zip sconsPackages.scons_3_1_2 gnum4 makeWrapper ··· 39 39 preBuild = '' 40 40 pushd tdm_update 41 41 scons BUILD=release TARGET_ARCH=x64 42 - install -Dm755 tdm_update.linux $out/share/libexec/tdm_update.linux 42 + install -Dm755 bin/tdm_update.linux64 $out/share/libexec/tdm_update.linux 43 43 popd 44 44 ''; 45 45 46 46 # why oh why can it find ld but not strip? 47 47 postPatch = '' 48 48 sed -i 's!strip \$!${binutils-unwrapped}/bin/strip $!' SConstruct 49 + # This adds math.h needed for math::floor 50 + sed -i 's|#include "Util.h"|#include "Util.h"\n#include <math.h>|' tdm_update/ConsoleUpdater.cpp 49 51 ''; 50 52 51 53 installPhase = ''