tbe: fix build, clean up dependencies

K900 eade7e00 f891c1c6

+10 -7
+10 -7
pkgs/games/the-butterfly-effect/default.nix
··· 1 - { lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }: 1 + { lib, mkDerivation, fetchFromGitHub, cmake, qttools, wrapQtAppsHook, qtbase, qtsvg }: 2 2 3 3 mkDerivation rec { 4 4 pname = "tbe"; ··· 11 11 sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"; 12 12 }; 13 13 14 - postPatch = "sed '1i#include <vector>' -i src/model/World.h"; 14 + postPatch = '' 15 + sed '1i#include <vector>' -i src/model/World.h 15 16 16 - nativeBuildInputs = [ cmake ]; 17 - buildInputs = [ 18 - qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which 19 - gettext 20 - ]; 17 + # fix translations not building: https://gitlab.kitware.com/cmake/cmake/-/issues/21931 18 + substituteInPlace i18n/CMakeLists.txt --replace qt5_create_translation qt_add_translation 19 + ''; 20 + 21 + nativeBuildInputs = [ cmake qttools wrapQtAppsHook ]; 22 + buildInputs = [ qtbase qtsvg ]; 23 + strictDeps = true; 21 24 22 25 installPhase = '' 23 26 make DESTDIR=.. install