Skip to content

Commit

Permalink
fontconfig 2.10: Don't use stdenv.cross
Browse files Browse the repository at this point in the history
  • Loading branch information
hSloan authored and Ericson2314 committed Jun 28, 2017
1 parent df8c390 commit 0fa3d99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/libraries/fontconfig/2.10.nix
@@ -1,4 +1,6 @@
{ stdenv, fetchurl, pkgconfig, freetype, expat }:
{ stdenv, fetchurl, pkgconfig, freetype, expat
, hostPlatform
}:

stdenv.mkDerivation rec {
name = "fontconfig-2.10.2";
Expand All @@ -21,7 +23,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
Expand Down

0 comments on commit 0fa3d99

Please sign in to comment.