tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tbe: fix build, clean up dependencies
K900
2 years ago
eade7e00
f891c1c6
+10
-7
1 changed file
expand all
collapse all
unified
split
pkgs
games
the-butterfly-effect
default.nix
+10
-7
pkgs/games/the-butterfly-effect/default.nix
···
1
1
-
{ lib, mkDerivation, fetchFromGitHub, qt5, box2d, which, cmake, gettext }:
1
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
14
-
postPatch = "sed '1i#include <vector>' -i src/model/World.h";
14
14
+
postPatch = ''
15
15
+
sed '1i#include <vector>' -i src/model/World.h
15
16
16
16
-
nativeBuildInputs = [ cmake ];
17
17
-
buildInputs = [
18
18
-
qt5.qtbase qt5.qtsvg qt5.qttranslations box2d which
19
19
-
gettext
20
20
-
];
17
17
+
# fix translations not building: https://gitlab.kitware.com/cmake/cmake/-/issues/21931
18
18
+
substituteInPlace i18n/CMakeLists.txt --replace qt5_create_translation qt_add_translation
19
19
+
'';
20
20
+
21
21
+
nativeBuildInputs = [ cmake qttools wrapQtAppsHook ];
22
22
+
buildInputs = [ qtbase qtsvg ];
23
23
+
strictDeps = true;
21
24
22
25
installPhase = ''
23
26
make DESTDIR=.. install