Skip to content

Commit bc51cb8

Browse files
authored
performous: fix build (#497150)
2 parents a53c524 + 95e78f0 commit bc51cb8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pkgs/by-name/pe/performous/package.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
aubio,
88
boost,
99
cmake,
10-
ffmpeg_7,
10+
ffmpeg,
1111
fmt,
1212
gettext,
1313
glew,
@@ -62,6 +62,12 @@ stdenv.mkDerivation rec {
6262
extraPrefix = "ced-src/";
6363
hash = "sha256-23VD/4X4BOtcX5k+koSlRMowlbo2jAXbp3XKTXP7VrM=";
6464
})
65+
(fetchpatch {
66+
name = "performous-ffmpeg_8.patch";
67+
url = "https://github.com/performous/performous/commit/783befe576051458da7ea0d915d2b4cb986eaf86.patch";
68+
excludes = [ "osx-utils/macos-bundler.py" ];
69+
hash = "sha256-Srkjr8BI98N8Ws853goonvjOrEyWvzjHAIhypgEydns=";
70+
})
6571
];
6672

6773
prePatch = ''
@@ -72,6 +78,8 @@ stdenv.mkDerivation rec {
7278
postPatch = ''
7379
substituteInPlace data/CMakeLists.txt \
7480
--replace "/usr" "$out"
81+
substituteInPlace {game,testing}/CMakeLists.txt \
82+
--replace-fail "system locale" "locale"
7583
'';
7684

7785
nativeBuildInputs = [
@@ -84,7 +92,7 @@ stdenv.mkDerivation rec {
8492
SDL2
8593
aubio
8694
boost
87-
ffmpeg_7
95+
ffmpeg
8896
fmt
8997
glew
9098
glibmm

0 commit comments

Comments
 (0)