From a5f4e22289229a5f6b7341d17c45db98be84d479 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 10 Mar 2017 13:50:21 +0100 Subject: [PATCH] stdenv: aarch64 is also ARM --- pkgs/development/libraries/libdrm/default.nix | 2 +- pkgs/development/libraries/mesa/default.nix | 6 +++--- pkgs/stdenv/generic/default.nix | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libdrm/default.nix b/pkgs/development/libraries/libdrm/default.nix index 3dfbdd7040f2..aadcfcf05a8e 100644 --- a/pkgs/development/libraries/libdrm/default.nix +++ b/pkgs/development/libraries/libdrm/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { "echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache"; configureFlags = [ "--disable-valgrind" ] - ++ stdenv.lib.optionals (stdenv.isArm || stdenv.isAarch64) [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] + ++ stdenv.lib.optionals stdenv.isArm [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ] ++ stdenv.lib.optional stdenv.isDarwin "-C"; crossAttrs.configureFlags = configureFlags ++ [ "--disable-intel" ]; diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index f5e716d212c7..758e2446d03c 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -30,15 +30,15 @@ else let defaultGalliumDrivers = - if (stdenv.isArm || stdenv.isAarch64) + if stdenv.isArm then ["nouveau" "freedreno" "vc4" "etnaviv"] else ["i915" "ilo" "r300" "r600" "radeonsi" "nouveau"]; defaultDriDrivers = - if (stdenv.isArm || stdenv.isAarch64) + if stdenv.isArm then ["nouveau"] else ["i915" "i965" "nouveau" "radeon" "r200"]; defaultVulkanDrivers = - if (stdenv.isArm || stdenv.isAarch64) + if stdenv.isArm then [] else ["intel"] ++ lib.optional enableRadv "radeon"; in diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index cb94db48f4bd..1900e404e6d0 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -397,7 +397,8 @@ let || system == "mips64el-linux"; isArm = system == "armv5tel-linux" || system == "armv6l-linux" - || system == "armv7l-linux"; + || system == "armv7l-linux" + || system == "aarch64-linux"; isAarch64 = system == "aarch64-linux"; isBigEndian = system == "powerpc-linux";