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
|
{ stdenv, substituteAll, fetchurl, fetchpatch
|
||||||
, substituteAll }:
|
, pkgconfig, freetype, expat, libxslt, dejavu_fonts
|
||||||
|
, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
/** Font configuration scheme
|
/** Font configuration scheme
|
||||||
- ./config-compat.patch makes fontconfig try the following root configs, in order:
|
- ./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.
|
# We should find a better way to access the arch reliably.
|
||||||
crossArch = stdenv.cross.arch or null;
|
crossArch = hostPlatform.arch or null;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
if test -n "$crossConfig"; then
|
if test -n "$crossConfig"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user