forked from mirrors/nixpkgs
fontconfig default: Don't use stdenv.cross
This commit is contained in:
parent
0fa3d99f4e
commit
9b2d1cbc70
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue