Unverified Commit 81dcfeef authored by Colin's avatar Colin Committed by GitHub
Browse files

emulationstation-de: fix cross build (#375342)

parents 949a79c6 d9cf42ca
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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
  ];