From 95e78f07cdb791afe3b9b4ef1d4451e779497d5b Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 6 Mar 2026 10:34:16 +0100 Subject: [PATCH] performous: fix build --- pkgs/by-name/pe/performous/package.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pe/performous/package.nix b/pkgs/by-name/pe/performous/package.nix index 9256a64c627a..71fc1b56f3bd 100644 --- a/pkgs/by-name/pe/performous/package.nix +++ b/pkgs/by-name/pe/performous/package.nix @@ -7,7 +7,7 @@ aubio, boost, cmake, - ffmpeg_7, + ffmpeg, fmt, gettext, glew, @@ -62,6 +62,12 @@ stdenv.mkDerivation rec { extraPrefix = "ced-src/"; hash = "sha256-23VD/4X4BOtcX5k+koSlRMowlbo2jAXbp3XKTXP7VrM="; }) + (fetchpatch { + name = "performous-ffmpeg_8.patch"; + url = "https://github.com/performous/performous/commit/783befe576051458da7ea0d915d2b4cb986eaf86.patch"; + excludes = [ "osx-utils/macos-bundler.py" ]; + hash = "sha256-Srkjr8BI98N8Ws853goonvjOrEyWvzjHAIhypgEydns="; + }) ]; prePatch = '' @@ -72,6 +78,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace data/CMakeLists.txt \ --replace "/usr" "$out" + substituteInPlace {game,testing}/CMakeLists.txt \ + --replace-fail "system locale" "locale" ''; nativeBuildInputs = [ @@ -84,7 +92,7 @@ stdenv.mkDerivation rec { SDL2 aubio boost - ffmpeg_7 + ffmpeg fmt glew glibmm