mupdf: fix finding pkg-config under cross-compilation

authored by Yves Fischer and committed by Franz Pletz 48728f5c 511cc486

+7 -2
+7 -2
pkgs/applications/misc/mupdf/default.nix
··· 5 , copyDesktopItems 6 , makeDesktopItem 7 , desktopToDarwinBundle 8 , pkg-config 9 , freetype 10 , harfbuzz ··· 49 50 postPatch = '' 51 sed -i "s/__OPENJPEG__VERSION__/${openJpegVersion}/" source/fitz/load-jpx.c 52 ''; 53 54 # Use shared libraries to decrease size 55 buildFlags = [ "shared" ]; 56 57 - makeFlags = [ "prefix=$(out)" "USE_SYSTEM_LIBS=yes" ] 58 - ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ] 59 ++ lib.optionals (!enableGL) [ "HAVE_GLUT=no" ]; 60 61 nativeBuildInputs = [ pkg-config ]
··· 5 , copyDesktopItems 6 , makeDesktopItem 7 , desktopToDarwinBundle 8 + , buildPackages 9 , pkg-config 10 , freetype 11 , harfbuzz ··· 50 51 postPatch = '' 52 sed -i "s/__OPENJPEG__VERSION__/${openJpegVersion}/" source/fitz/load-jpx.c 53 + substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG" 54 ''; 55 56 # Use shared libraries to decrease size 57 buildFlags = [ "shared" ]; 58 59 + makeFlags = [ 60 + "prefix=$(out)" 61 + "USE_SYSTEM_LIBS=yes" 62 + "PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config" 63 + ] ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ] 64 ++ lib.optionals (!enableGL) [ "HAVE_GLUT=no" ]; 65 66 nativeBuildInputs = [ pkg-config ]