fontconfig default: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:09:01 -04:00 committed by John Ericson
parent 0fa3d99f4e
commit 9b2d1cbc70

View File

@ -1,5 +1,7 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, freetype, expat, libxslt, dejavu_fonts
, substituteAll }:
{ stdenv, substituteAll, fetchurl, fetchpatch
, pkgconfig, freetype, expat, libxslt, dejavu_fonts
, hostPlatform
}:
/** Font configuration scheme
- ./config-compat.patch makes fontconfig try the following root configs, in order:
@ -53,7 +55,7 @@ stdenv.mkDerivation rec {
];
# We should find a better way to access the arch reliably.
crossArch = stdenv.cross.arch or null;
crossArch = hostPlatform.arch or null;
preConfigure = ''
if test -n "$crossConfig"; then