openspades: fix build
commit976657a71f96d9b7cdd09e96c8d1e844a74ce4d5
authorDomen Kožar <domen@dev.si>
dateTue 1 Mar 2016, 14:31 (11 years ago)
parente5069c1
pkgs/games/openspades/default.nix+7
@@ -12,6 +12,13 @@ stdenv.mkDerivation rec {
1212 sha256 = "1aa848cck8qrp67ha9vrkzm3k24r2aiv1v4dxla6pi22rw98yxzm";
1313 };
1414
15+ # https://github.com/yvt/openspades/issues/354
16+ postPatch = ''
17+ substituteInPlace Sources/Client/Client_Input.cpp --replace "isnan(" "std::isnan("
18+ substituteInPlace Sources/Client/Corpse.cpp --replace "isnan(" "std::isnan("
19+ substituteInPlace Sources/Draw/SWMapRenderer.cpp --replace "isnan(" "std::isnan(" --replace "isinf(" "std::isinf("
20+ '';
21+
1522 nativeBuildInputs =
1623 with stdenv.lib;
1724 [ cmake curl glew makeWrapper mesa SDL2 SDL2_image unzip wget zlib ]