summary refs log tree commit diff
path: root/pkgs/development/libraries/fontconfig/2.10.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 00:57:52 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-10 01:37:31 -0400
commita02be2bd85b37ed8b257e969d9439357844baa24 (patch)
tree5dd1c59168e51b84ced74122fe9d7e14f3e7a2d3 /pkgs/development/libraries/fontconfig/2.10.nix
parenta31984ecdaf7b011163c3c71679eb285d951d735 (diff)
downloadnixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar.gz
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar.bz2
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar.lz
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar.xz
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.tar.zst
nixpkgs-a02be2bd85b37ed8b257e969d9439357844baa24.zip
treewide: Get rid of `*Platform.arch`
Use `parsed.cpu.name` or `platform.gcc.arch` instead.
Diffstat (limited to 'pkgs/development/libraries/fontconfig/2.10.nix')
-rw-r--r--pkgs/development/libraries/fontconfig/2.10.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/fontconfig/2.10.nix b/pkgs/development/libraries/fontconfig/2.10.nix
index 3f3c04b15a3..5fb0ea4429e 100644
--- a/pkgs/development/libraries/fontconfig/2.10.nix
+++ b/pkgs/development/libraries/fontconfig/2.10.nix
@@ -24,7 +24,9 @@ stdenv.mkDerivation rec {
   ];
 
   # We should find a better way to access the arch reliably.
-  crossArch = hostPlatform.arch or null;
+  crossArch = if stdenv.hostPlatform != stdenv.buildPlatform
+    then hostPlatform.parsed.cpu.name
+    else null;
 
   preConfigure = ''
     if test -n "$crossConfig"; then