poppler: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:24:16 -04:00 committed by John Ericson
parent 51856df2a1
commit d28eb3b7a0

View File

@ -6,6 +6,7 @@
, introspectionSupport ? false, gobjectIntrospection ? null , introspectionSupport ? false, gobjectIntrospection ? null
, utils ? false , utils ? false
, minimal ? false, suffix ? "glib" , minimal ? false, suffix ? "glib"
, hostPlatform
}: }:
let # beware: updates often break cups-filters build let # beware: updates often break cups-filters build
@ -56,7 +57,7 @@ stdenv.mkDerivation rec {
crossAttrs.postPatch = crossAttrs.postPatch =
# there are tests using `strXXX_s` functions that are missing apparently # there are tests using `strXXX_s` functions that are missing apparently
stdenv.lib.optionalString (stdenv.cross.libc or null == "msvcrt") stdenv.lib.optionalString (hostPlatform.libc or null == "msvcrt")
"sed '/^SUBDIRS =/s/ test / /' -i Makefile.in"; "sed '/^SUBDIRS =/s/ test / /' -i Makefile.in";
meta = with lib; { meta = with lib; {