emulationstation-de: fix cross build (#375342)

This commit is contained in:
Colin
2025-01-22 20:32:33 +00:00
committed by GitHub
@@ -10,6 +10,7 @@
ffmpeg,
freeimage,
freetype,
gettext,
harfbuzz,
icu,
libgit2,
@@ -31,8 +32,15 @@ stdenv.mkDerivation (finalAttrs: {
./001-add-nixpkgs-retroarch-cores.patch
];
postPatch = ''
# ldd-based detection fails for cross builds
substituteInPlace CMake/Packages/FindPoppler.cmake \
--replace-fail 'GET_PREREQUISITES("''${POPPLER_LIBRARY}" POPPLER_PREREQS 1 0 "" "")' ""
'';
nativeBuildInputs = [
cmake
gettext # msgfmt
pkg-config
];