diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2023-06-20 11:34:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 11:34:52 +0200 |
commit | b7b4da16638ecc8c1465a45289c58bff7549faaf (patch) | |
tree | a8d536c8ac4e137e1763b31975408dd9c899d92c /pkgs | |
parent | 940fcf2e5b12afb874cec5b454dac4fb5dc6af6b (diff) | |
parent | eade7e0058e1cd730bdd27839a5d471bd2e17595 (diff) |
Merge pull request #238721 from K900/fix-tbe-build
tbe: fix build, clean up dependencies
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/the-butterfly-effect/default.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/games/the-butterfly-effect/default.nix b/pkgs/games/the-butterfly-effect/default.nix index cc753783f0358..021dedc17bd9c 100644 --- a/pkgs/games/the-butterfly-effect/default.nix +++ b/pkgs/games/the-butterfly-effect/default.nix @@ -1,4 +1,4 @@ -{ lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }: +{ lib, mkDerivation, fetchFromGitHub, cmake, qttools, wrapQtAppsHook, qtbase, qtsvg }: mkDerivation rec { pname = "tbe"; @@ -11,13 +11,16 @@ mkDerivation rec { sha256 = "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"; }; - postPatch = "sed '1i#include <vector>' -i src/model/World.h"; + postPatch = '' + sed '1i#include <vector>' -i src/model/World.h - nativeBuildInputs = [ cmake ]; - buildInputs = [ - qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which - gettext - ]; + # fix translations not building: https://gitlab.kitware.com/cmake/cmake/-/issues/21931 + substituteInPlace i18n/CMakeLists.txt --replace qt5_create_translation qt_add_translation + ''; + + nativeBuildInputs = [ cmake qttools wrapQtAppsHook ]; + buildInputs = [ qtbase qtsvg ]; + strictDeps = true; installPhase = '' make DESTDIR=.. install |