git.iko.soy/typeable/nixpkgs
on master help sign in
treewide: isArm -> isAarch32

Following legacy packing conventions, `isArm` was defined just for 32-bit ARM instruction set. This is confusing to non packagers though, because Aarch64 is an ARM instruction set. The official ARM overview for ARMv8[1] is surprisingly not confusing, given the overall state of affairs for ARM naming conventions, and offers us a solution. It divides the nomenclature into three levels: ``` ISA: ARMv8 {-A, -R, -M} / \ Mode: Aarch32 Aarch64 | / \ Encoding: A64 A32 T32 ``` At the top is the overall v8 instruction set archicture. Second are the two modes, defined by bitwidth but differing in other semantics too, and buttom are the encodings, (hopefully?) isomorphic if they encode the same mode. The 32 bit encodings are mostly backwards compatible with previous non-Thumb and Thumb encodings, and if so we can pun the mode names to instead mean "sets of compatable or isomorphic encodings", and then voilà we have nice names for 32-bit and 64-bit arm instruction sets which do not use the word ARM so as to not confused either laymen or experienced ARM packages. [1]: https://developer.arm.com/products/architecture/a-profile (cherry picked from commit ba52ae50488de85a9cf60a3a04f1c9ca7122ec74)

commitb9acfb4ecfbbdac123fed170f5b2806fe4e846d0 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 19 Mar 2018, 22:41 (9 years ago) parent1a72330
69 files changed+109−106
lib/systems/doubles.nix+1−1 lib/systems/for-meta.nix+1−1 lib/systems/inspect.nix+5−2 lib/systems/parse.nix+1−1 nixos/lib/qemu-flags.nix+1−1 nixos/modules/config/gnu.nix+2−2 pkgs/applications/audio/sunvox/default.nix+1−1 pkgs/applications/networking/instant-messengers/toxic/default.nix+1−1 pkgs/applications/virtualization/qemu/default.nix+3−3 pkgs/build-support/bintools-wrapper/default.nix+2−2 pkgs/development/compilers/gcc/4.5/default.nix+1−1 pkgs/development/compilers/gcc/4.8/default.nix+1−1 pkgs/development/compilers/gcc/4.9/default.nix+1−1 pkgs/development/compilers/gcc/5/default.nix+1−1 pkgs/development/compilers/gcc/6/default.nix+1−1 pkgs/development/compilers/gcc/7/default.nix+1−1 pkgs/development/compilers/gcc/snapshot/default.nix+1−1 pkgs/development/compilers/ghc/7.10.3-binary.nix+1−1 pkgs/development/compilers/ghc/8.2.1-binary.nix+1−1 pkgs/development/compilers/ghc/8.2.2.nix+3−3 pkgs/development/compilers/ghc/8.4.1.nix+2−2 pkgs/development/compilers/ghc/head.nix+2−2 pkgs/development/compilers/go/1.10.nix+2−2 pkgs/development/compilers/go/1.4.nix+1−1 pkgs/development/compilers/go/1.9.nix+2−2 pkgs/development/compilers/ocaml/3.12.1.nix+1−1 pkgs/development/compilers/ocaml/4.00.1.nix+1−1 pkgs/development/compilers/ocaml/generic.nix+2−2 pkgs/development/compilers/sbcl/bootstrap.nix+1−1 pkgs/development/compilers/sbcl/default.nix+1−1 pkgs/development/haskell-modules/configuration-common.nix+5−5 pkgs/development/haskell-modules/generic-builder.nix+1−1 pkgs/development/interpreters/perl/default.nix+1−1 pkgs/development/interpreters/picolisp/default.nix+1−1 pkgs/development/interpreters/spidermonkey/1.8.5.nix+4−4 pkgs/development/libraries/ffmpeg/generic.nix+7−7 pkgs/development/libraries/freetype/default.nix+1−1 pkgs/development/libraries/glibc/common-2.27.nix+1−1 pkgs/development/libraries/glibc/common.nix+1−1 pkgs/development/libraries/gmp/5.1.x.nix+1−1 pkgs/development/libraries/gmp/6.x.nix+1−1 pkgs/development/libraries/gnu-efi/default.nix+1−1 pkgs/development/libraries/icu/base.nix+1−1 pkgs/development/libraries/jemalloc/default.nix+1−1 pkgs/development/libraries/libdrm/default.nix+1−1 pkgs/development/libraries/libtoxcore/default.nix+1−1 pkgs/development/libraries/libtoxcore/new-api.nix+2−2 pkgs/development/libraries/libvpx/default.nix+1−1 pkgs/development/libraries/libvpx/git.nix+2−2 pkgs/development/libraries/mesa/default.nix+3−3 pkgs/development/libraries/pixman/default.nix+1−1 pkgs/development/libraries/pth/default.nix+1−1 pkgs/development/libraries/v8/3.16.14.nix+2−2 pkgs/development/libraries/v8/6_x.nix+1−1 pkgs/development/libraries/v8/default.nix+1−1 pkgs/development/libraries/webrtc-audio-processing/default.nix+1−1 pkgs/development/python-modules/Cython/default.nix+1−1 pkgs/development/tools/misc/binutils/2.30.nix+1−1 pkgs/development/tools/misc/binutils/default.nix+1−1 pkgs/os-specific/linux/kbd/default.nix+1−1 pkgs/os-specific/linux/kernel/common-config.nix+1−1 pkgs/os-specific/linux/systemd/default.nix+1−1 pkgs/os-specific/linux/uclibc/default.nix+1−1 pkgs/servers/sql/mariadb/default.nix+1−1 pkgs/stdenv/generic/default.nix+1−1 pkgs/tools/networking/cjdns/default.nix+1−1 pkgs/tools/networking/filegive/default.nix+1−1 pkgs/tools/system/storebrowse/default.nix+1−1 pkgs/top-level/all-packages.nix+8−8
lib/systems/doubles.nix+1−1
@@ -26,7 +26,7 @@ in rec {
2626
2727 none = [];
2828
29− arm = filterDoubles predicates.isArm;
29+ arm = filterDoubles predicates.isAarch32;
3030 aarch64 = filterDoubles predicates.isAarch64;
3131 x86 = filterDoubles predicates.isx86;
3232 i686 = filterDoubles predicates.isi686;
lib/systems/for-meta.nix+1−1
@@ -7,7 +7,7 @@ in rec {
77 inherit (lib.systems.doubles) all mesaPlatforms;
88 none = [];
99
10− arm = [ patterns.isArm ];
10+ arm = [ patterns.isAarch32 ];
1111 aarch64 = [ patterns.isAarch64 ];
1212 x86 = [ patterns.isx86 ];
1313 i686 = [ patterns.isi686 ];
lib/systems/inspect.nix+5−2
@@ -9,8 +9,8 @@ rec {
99 isx86_64 = { cpu = cpuTypes.x86_64; };
1010 isPowerPC = { cpu = cpuTypes.powerpc; };
1111 isx86 = { cpu = { family = "x86"; }; };
12− isArm = { cpu = { family = "arm"; }; };
13− isAarch64 = { cpu = { family = "aarch64"; }; };
12+ isAarch32 = { cpu = { family = "arm"; bits = 32; }; };
13+ isAarch64 = { cpu = { family = "arm"; bits = 64; }; };
1414 isMips = { cpu = { family = "mips"; }; };
1515 isRiscV = { cpu = { family = "riscv"; }; };
1616 isWasm = { cpu = { family = "wasm"; }; };
@@ -43,6 +43,9 @@ rec {
4343 [ "x86" "arm" "aarch64" ];
4444 isSeccomputable = map (family: { kernel = kernels.linux; cpu.family = family; })
4545 [ "x86" "arm" "aarch64" "mips" ];
46+
47+ # Deprecated after 18.03
48+ isArm = isAarch32;
4649 };
4750
4851 matchAnyAttrs = patterns:
lib/systems/parse.nix+1−1
@@ -72,7 +72,7 @@ rec {
7272 armv6l = { bits = 32; significantByte = littleEndian; family = "arm"; };
7373 armv7a = { bits = 32; significantByte = littleEndian; family = "arm"; };
7474 armv7l = { bits = 32; significantByte = littleEndian; family = "arm"; };
75− aarch64 = { bits = 64; significantByte = littleEndian; family = "aarch64"; };
75+ aarch64 = { bits = 64; significantByte = littleEndian; family = "arm"; };
7676 i686 = { bits = 32; significantByte = littleEndian; family = "x86"; };
7777 x86_64 = { bits = 64; significantByte = littleEndian; family = "x86"; };
7878 mips = { bits = 32; significantByte = bigEndian; family = "mips"; };
nixos/lib/qemu-flags.nix+1−1
@@ -9,7 +9,7 @@
99 ];
1010
1111 qemuSerialDevice = if pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64 then "ttyS0"
12− else if pkgs.stdenv.isArm || pkgs.stdenv.isAarch64 then "ttyAMA0"
12+ else if pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64 then "ttyAMA0"
1313 else throw "Unknown QEMU serial device for system '${pkgs.stdenv.system}'";
1414
1515 qemuBinary = qemuPkg: {
nixos/modules/config/gnu.nix+2−2
@@ -26,11 +26,11 @@ with lib;
2626 nano zile
2727 texinfo # for the stand-alone Info reader
2828 ]
29− ++ stdenv.lib.optional (!stdenv.isArm) grub2;
29+ ++ stdenv.lib.optional (!stdenv.isAarch32) grub2;
3030
3131
3232 # GNU GRUB, where available.
33− boot.loader.grub.enable = !pkgs.stdenv.isArm;
33+ boot.loader.grub.enable = !pkgs.stdenv.isAarch32;
3434 boot.loader.grub.version = 2;
3535
3636 # GNU lsh.
pkgs/applications/audio/sunvox/default.nix+1−1
@@ -5,7 +5,7 @@ let
55 arch =
66 if stdenv.isAarch64
77 then "arm64"
8− else if stdenv.isArm
8+ else if stdenv.isAarch32
99 then "arm_armhf_raspberry_pi"
1010 else if stdenv.is64bit
1111 then "x86_64"
pkgs/applications/networking/instant-messengers/toxic/default.nix+1−1
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
1818
1919 buildInputs = [
2020 libtoxcore libsodium ncurses curl gdk_pixbuf libnotify
21− ] ++ stdenv.lib.optionals (!stdenv.isArm) [
21+ ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
2222 openal libopus libvpx freealut libqrencode
2323 ];
2424 nativeBuildInputs = [ pkgconfig libconfig ];
pkgs/applications/virtualization/qemu/default.nix+3−3
@@ -4,7 +4,7 @@
44, makeWrapper
55, attr, libcap, libcap_ng
66, CoreServices, Cocoa, rez, setfile
7−, numaSupport ? stdenv.isLinux && !stdenv.isArm, numactl
7+, numaSupport ? stdenv.isLinux && !stdenv.isAarch32, numactl
88, seccompSupport ? stdenv.isLinux, libseccomp
99, pulseSupport ? !stdenv.isDarwin, libpulseaudio
1010, sdlSupport ? !stdenv.isDarwin, SDL
@@ -26,7 +26,7 @@ let
2626
2727 hostCpuTargets = if stdenv.isx86_64 then "i386-softmmu,x86_64-softmmu"
2828 else if stdenv.isi686 then "i386-softmmu"
29− else if stdenv.isArm then "arm-softmmu"
29+ else if stdenv.isAarch32 then "arm-softmmu"
3030 else if stdenv.isAarch64 then "aarch64-softmmu"
3131 else throw "Don't know how to build a 'hostCpuOnly = true' QEMU";
3232in
@@ -97,7 +97,7 @@ stdenv.mkDerivation rec {
9797 postInstall =
9898 if stdenv.isx86_64 then ''makeWrapper $out/bin/qemu-system-x86_64 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
9999 else if stdenv.isi686 then ''makeWrapper $out/bin/qemu-system-i386 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
100− else if stdenv.isArm then ''makeWrapper $out/bin/qemu-system-arm $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
100+ else if stdenv.isAarch32 then ''makeWrapper $out/bin/qemu-system-arm $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
101101 else if stdenv.isAarch64 then ''makeWrapper $out/bin/qemu-system-aarch64 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
102102 else "";
103103
pkgs/build-support/bintools-wrapper/default.nix+2−2
@@ -55,7 +55,7 @@ let
5555 else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
5656 else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
5757 # ARM with a wildcard, which can be "" or "-armhf".
58− else if (with targetPlatform; isArm && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
58+ else if (with targetPlatform; isAarch32 && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
5959 else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
6060 else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
6161 else if targetPlatform.isMips then "${libc_lib}/lib/ld.so.1"
@@ -174,7 +174,7 @@ stdenv.mkDerivation {
174174 sep = optionalString (!targetPlatform.isMips) "-";
175175 arch =
176176 /**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
177− else if targetPlatform.isArm then endianPrefix + "arm"
177+ else if targetPlatform.isAarch32 then endianPrefix + "arm"
178178 else if targetPlatform.isx86_64 then "x86-64"
179179 else if targetPlatform.isi686 then "i386"
180180 else if targetPlatform.isMips then {
pkgs/development/compilers/gcc/4.5/default.nix+1−1
@@ -258,7 +258,7 @@ stdenv.mkDerivation ({
258258 # TODO(@Ericson2314): Always pass "--target" and always prefix.
259259 configurePlatforms =
260260 # TODO(@Ericson2314): Figure out what's going wrong with Arm
261− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
261+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
262262 then []
263263 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
264264
pkgs/development/compilers/gcc/4.8/default.nix+1−1
@@ -300,7 +300,7 @@ stdenv.mkDerivation ({
300300 # TODO(@Ericson2314): Always pass "--target" and always prefix.
301301 configurePlatforms =
302302 # TODO(@Ericson2314): Figure out what's going wrong with Arm
303− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
303+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
304304 then []
305305 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
306306
pkgs/development/compilers/gcc/4.9/default.nix+1−1
@@ -309,7 +309,7 @@ stdenv.mkDerivation ({
309309 # TODO(@Ericson2314): Always pass "--target" and always prefix.
310310 configurePlatforms =
311311 # TODO(@Ericson2314): Figure out what's going wrong with Arm
312− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
312+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
313313 then []
314314 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
315315
pkgs/development/compilers/gcc/5/default.nix+1−1
@@ -329,7 +329,7 @@ stdenv.mkDerivation ({
329329 # TODO(@Ericson2314): Always pass "--target" and always prefix.
330330 configurePlatforms =
331331 # TODO(@Ericson2314): Figure out what's going wrong with Arm
332− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
332+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
333333 then []
334334 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
335335
pkgs/development/compilers/gcc/6/default.nix+1−1
@@ -333,7 +333,7 @@ stdenv.mkDerivation ({
333333 # TODO(@Ericson2314): Always pass "--target" and always prefix.
334334 configurePlatforms =
335335 # TODO(@Ericson2314): Figure out what's going wrong with Arm
336− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
336+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
337337 then []
338338 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
339339
pkgs/development/compilers/gcc/7/default.nix+1−1
@@ -329,7 +329,7 @@ stdenv.mkDerivation ({
329329 # TODO(@Ericson2314): Always pass "--target" and always prefix.
330330 configurePlatforms =
331331 # TODO(@Ericson2314): Figure out what's going wrong with Arm
332− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
332+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
333333 then []
334334 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
335335
pkgs/development/compilers/gcc/snapshot/default.nix+1−1
@@ -301,7 +301,7 @@ stdenv.mkDerivation ({
301301 # TODO(@Ericson2314): Always pass "--target" and always prefix.
302302 configurePlatforms =
303303 # TODO(@Ericson2314): Figure out what's going wrong with Arm
304− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
304+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
305305 then []
306306 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
307307
pkgs/development/compilers/ghc/7.10.3-binary.nix+1−1
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
4343 or (throw "cannot bootstrap GHC on this platform"));
4444
4545 nativeBuildInputs = [ perl ];
46− buildInputs = stdenv.lib.optionals stdenv.targetPlatform.isArm [ llvm_35 ];
46+ buildInputs = stdenv.lib.optionals stdenv.targetPlatform.isAarch32 [ llvm_35 ];
4747
4848 # Cannot patchelf beforehand due to relative RPATHs that anticipate
4949 # the final install location/
pkgs/development/compilers/ghc/8.2.1-binary.nix+1−1
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
4646 or (throw "cannot bootstrap GHC on this platform"));
4747
4848 nativeBuildInputs = [ perl ];
49− buildInputs = stdenv.lib.optionals (stdenv.targetPlatform.isArm || stdenv.targetPlatform.isAarch64) [ llvm_39 ];
49+ buildInputs = stdenv.lib.optionals (stdenv.targetPlatform.isAarch32 || stdenv.targetPlatform.isAarch64) [ llvm_39 ];
5050
5151 # Cannot patchelf beforehand due to relative RPATHs that anticipate
5252 # the final install location/
pkgs/development/compilers/ghc/8.2.2.nix+3−3
@@ -25,7 +25,7 @@
2525 enableShared ?
2626 !(targetPlatform.isDarwin
2727 # On iOS, dynamic linking is not supported
28− && (targetPlatform.isAarch64 || targetPlatform.isArm))
28+ && (targetPlatform.isAarch64 || targetPlatform.isAarch32))
2929, # Whether to backport https://phabricator.haskell.org/D4388 for
3030 # deterministic profiling symbol names, at the cost of a slightly
3131 # non-standard GHC API
@@ -107,7 +107,7 @@ stdenv.mkDerivation rec {
107107 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
108108 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
109109 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
110− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
110+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
111111 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
112112 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
113113 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -136,7 +136,7 @@ stdenv.mkDerivation rec {
136136 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
137137 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
138138 "--enable-bootstrap-with-devel-snapshot"
139− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
139+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
140140 "CFLAGS=-fuse-ld=gold"
141141 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
142142 "CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
pkgs/development/compilers/ghc/8.4.1.nix+2−2
@@ -103,7 +103,7 @@ stdenv.mkDerivation rec {
103103 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
104104 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
105105 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
106− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
106+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
107107 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
108108 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
109109 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -135,7 +135,7 @@ stdenv.mkDerivation rec {
135135 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
136136 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
137137 "--enable-bootstrap-with-devel-snapshot"
138− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
138+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
139139 "CFLAGS=-fuse-ld=gold"
140140 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
141141 "CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
pkgs/development/compilers/ghc/head.nix+2−2
@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
9393 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
9494 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
9595 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
96− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
96+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
9797 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
9898 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
9999 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -125,7 +125,7 @@ stdenv.mkDerivation rec {
125125 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
126126 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
127127 "--enable-bootstrap-with-devel-snapshot"
128− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
128+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
129129 "CFLAGS=-fuse-ld=gold"
130130 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
131131 "CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
pkgs/development/compilers/go/1.10.nix+2−2
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
8686
8787 '' + optionalString stdenv.isLinux ''
8888 sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
89− '' + optionalString stdenv.isArm ''
89+ '' + optionalString stdenv.isAarch32 ''
9090 sed -i '/TestCurrent/areturn' src/os/user/user_test.go
9191 echo '#!${stdenv.shell}' > misc/cgo/testplugin/test.bash
9292 '' + optionalString stdenv.isDarwin ''
@@ -131,7 +131,7 @@ stdenv.mkDerivation rec {
131131 GOARCH = if stdenv.isDarwin then "amd64"
132132 else if stdenv.system == "i686-linux" then "386"
133133 else if stdenv.system == "x86_64-linux" then "amd64"
134− else if stdenv.isArm then "arm"
134+ else if stdenv.isAarch32 then "arm"
135135 else if stdenv.isAarch64 then "arm64"
136136 else throw "Unsupported system";
137137 GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
pkgs/development/compilers/go/1.4.nix+1−1
@@ -130,7 +130,7 @@ stdenv.mkDerivation rec {
130130 GOARCH = if stdenv.isDarwin then "amd64"
131131 else if stdenv.system == "i686-linux" then "386"
132132 else if stdenv.system == "x86_64-linux" then "amd64"
133− else if stdenv.isArm then "arm"
133+ else if stdenv.isAarch32 then "arm"
134134 else throw "Unsupported system";
135135 GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
136136 GO386 = 387; # from Arch: don't assume sse2 on i686
pkgs/development/compilers/go/1.9.nix+2−2
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
8686
8787 '' + optionalString stdenv.isLinux ''
8888 sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
89− '' + optionalString stdenv.isArm ''
89+ '' + optionalString stdenv.isAarch32 ''
9090 sed -i '/TestCurrent/areturn' src/os/user/user_test.go
9191 echo '#!${stdenv.shell}' > misc/cgo/testplugin/test.bash
9292 '' + optionalString stdenv.isDarwin ''
@@ -133,7 +133,7 @@ stdenv.mkDerivation rec {
133133 GOARCH = if stdenv.isDarwin then "amd64"
134134 else if stdenv.system == "i686-linux" then "386"
135135 else if stdenv.system == "x86_64-linux" then "amd64"
136− else if stdenv.isArm then "arm"
136+ else if stdenv.isAarch32 then "arm"
137137 else if stdenv.isAarch64 then "arm64"
138138 else throw "Unsupported system";
139139 GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
pkgs/development/compilers/ocaml/3.12.1.nix+1−1
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, ncurses, xlibsWrapper }:
22
33let
4− useX11 = !stdenv.isArm && !stdenv.isMips;
4+ useX11 = !stdenv.isAarch32 && !stdenv.isMips;
55 useNativeCompilers = !stdenv.isMips;
66 inherit (stdenv.lib) optionals optionalString;
77in
pkgs/development/compilers/ocaml/4.00.1.nix+1−1
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, ncurses, xlibsWrapper }:
22
33let
4− useX11 = !stdenv.isArm && !stdenv.isMips;
4+ useX11 = !stdenv.isAarch32 && !stdenv.isMips;
55 useNativeCompilers = !stdenv.isMips;
66 inherit (stdenv.lib) optionals optionalString;
77in
pkgs/development/compilers/ocaml/generic.nix+2−2
@@ -7,7 +7,7 @@ let
77 real_url = if url == null then
88 "http://caml.inria.fr/pub/distrib/ocaml-${versionNoPatch}/ocaml-${version}.tar.xz"
99 else url;
10− safeX11 = stdenv: !(stdenv.isArm || stdenv.isMips);
10+ safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips);
1111in
1212
1313{ stdenv, fetchurl, ncurses, buildEnv
@@ -15,7 +15,7 @@ in
1515, flambdaSupport ? false
1616}:
1717
18−assert useX11 -> !stdenv.isArm && !stdenv.isMips;
18+assert useX11 -> !stdenv.isAarch32 && !stdenv.isMips;
1919assert flambdaSupport -> stdenv.lib.versionAtLeast version "4.03";
2020
2121let
pkgs/development/compilers/sbcl/bootstrap.nix+1−1
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
6565 --add-flags "--core $out/share/sbcl/sbcl.core"
6666 '';
6767
68− postFixup = stdenv.lib.optionalString (!stdenv.isArm && stdenv.isLinux) ''
68+ postFixup = stdenv.lib.optionalString (!stdenv.isAarch32 && stdenv.isLinux) ''
6969 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/share/sbcl/sbcl
7070 '';
7171
pkgs/development/compilers/sbcl/default.nix+1−1
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626 (setf features (remove x features))))
2727 ''
2828 + (if threadSupport then "(enable :sb-thread)" else "(disable :sb-thread)")
29− + stdenv.lib.optionalString stdenv.isArm "(enable :arm)"
29+ + stdenv.lib.optionalString stdenv.isAarch32 "(enable :arm)"
3030 + ''
3131 )) " > customize-target-features.lisp
3232
pkgs/development/haskell-modules/configuration-common.nix+5−5
@@ -937,11 +937,11 @@ self: super: {
937937 JuicyPixels = dontHaddock super.JuicyPixels;
938938
939939 # armv7l fixes.
940− happy = if pkgs.stdenv.isArm then dontCheck super.happy else super.happy; # Similar to https://ghc.haskell.org/trac/ghc/ticket/13062
941− hashable = if pkgs.stdenv.isArm then dontCheck super.hashable else super.hashable; # https://github.com/tibbe/hashable/issues/95
942− servant-docs = if pkgs.stdenv.isArm then dontCheck super.servant-docs else super.servant-docs;
943− servant-swagger = if pkgs.stdenv.isArm then dontCheck super.servant-swagger else super.servant-swagger;
944− swagger2 = if pkgs.stdenv.isArm then dontHaddock (dontCheck super.swagger2) else super.swagger2;
940+ happy = if pkgs.stdenv.isAarch32 then dontCheck super.happy else super.happy; # Similar to https://ghc.haskell.org/trac/ghc/ticket/13062
941+ hashable = if pkgs.stdenv.isAarch32 then dontCheck super.hashable else super.hashable; # https://github.com/tibbe/hashable/issues/95
942+ servant-docs = if pkgs.stdenv.isAarch32 then dontCheck super.servant-docs else super.servant-docs;
943+ servant-swagger = if pkgs.stdenv.isAarch32 then dontCheck super.servant-swagger else super.servant-swagger;
944+ swagger2 = if pkgs.stdenv.isAarch32 then dontHaddock (dontCheck super.swagger2) else super.swagger2;
945945
946946 # Tries to read a file it is not allowed to in the test suite
947947 load-env = dontCheck super.load-env;
pkgs/development/haskell-modules/generic-builder.nix+1−1
@@ -133,7 +133,7 @@ let
133133 (optionalString (enableSharedExecutables && stdenv.isDarwin) "--ghc-option=-optl=-Wl,-headerpad_max_install_names")
134134 (optionalString enableParallelBuilding "--ghc-option=-j$NIX_BUILD_CORES")
135135 (optionalString useCpphs "--with-cpphs=${cpphs}/bin/cpphs --ghc-options=-cpp --ghc-options=-pgmP${cpphs}/bin/cpphs --ghc-options=-optP--cpp")
136− (enableFeature (enableDeadCodeElimination && !hostPlatform.isArm && !hostPlatform.isAarch64 && (versionAtLeast "8.0.1" ghc.version)) "split-objs")
136+ (enableFeature (enableDeadCodeElimination && !hostPlatform.isAarch32 && !hostPlatform.isAarch64 && (versionAtLeast "8.0.1" ghc.version)) "split-objs")
137137 (enableFeature enableLibraryProfiling "library-profiling")
138138 (enableFeature enableExecutableProfiling (if versionOlder ghc.version "8" then "executable-profiling" else "profiling"))
139139 (enableFeature enableSharedLibraries "shared")
pkgs/development/interpreters/perl/default.nix+1−1
@@ -82,7 +82,7 @@ let
8282
8383 preConfigure = optionalString (!crossCompiling) ''
8484 configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
85− '' + optionalString (stdenv.isArm || stdenv.isMips) ''
85+ '' + optionalString (stdenv.isAarch32 || stdenv.isMips) ''
8686 configureFlagsArray=(-Dldflags="-lm -lrt")
8787 '' + optionalString stdenv.isDarwin ''
8888 substituteInPlace hints/darwin.sh --replace "env MACOSX_DEPLOYMENT_TARGET=10.3" ""
pkgs/development/interpreters/picolisp/default.nix+1−1
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "1k3x6mvk9b34iiyml142bzh3gf241f25ywjlaagbxzb9vklpws75";
1010 };
1111 buildInputs = optional stdenv.is64bit jdk;
12− patchPhase = optionalString stdenv.isArm ''
12+ patchPhase = optionalString stdenv.isAarch32 ''
1313 sed -i s/-m32//g Makefile
1414 cat >>Makefile <<EOF
1515 ext.o: ext.c
pkgs/development/interpreters/spidermonkey/1.8.5.nix+4−4
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111
1212 propagatedBuildInputs = [ nspr ];
1313
14− nativeBuildInputs = [ pkgconfig ] ++ lib.optional stdenv.isArm autoconf213;
14+ nativeBuildInputs = [ pkgconfig ] ++ lib.optional stdenv.isAarch32 autoconf213;
1515 buildInputs = [ perl python2 zip ];
1616
1717 postUnpack = "sourceRoot=\${sourceRoot}/js/src";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 preConfigure = ''
2020 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr.dev}/include/nspr"
2121 export LIBXUL_DIST=$out
22− ${lib.optionalString stdenv.isArm "autoreconf --verbose --force"}
22+ ${lib.optionalString stdenv.isAarch32 "autoreconf --verbose --force"}
2323 '';
2424
2525 patches = [
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 url = "https://anonscm.debian.org/cgit/collab-maint/mozjs.git/plain/debian/patches/fix-811665.patch?id=00b15c7841968ab4f7fec409a6b93fa5e1e1d32e";
2929 sha256 = "1q8477xqxiy5d8376k5902l45gd0qkd4nxmhl8vr6rr1pxfcny99";
3030 })
31− ] ++ stdenv.lib.optionals stdenv.isArm [
31+ ] ++ stdenv.lib.optionals stdenv.isAarch32 [
3232 # Explained below in configureFlags for ARM
3333 ./1.8.5-findvanilla.patch
3434 # Fix for hard float flags.
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
5050 # hack around a make problem, see https://github.com/NixOS/nixpkgs/issues/1279#issuecomment-29547393
5151 preBuild = ''
5252 touch -- {.,shell,jsapi-tests}/{-lpthread,-ldl}
53− ${if stdenv.isArm then "rm -r jit-test/tests/jaeger/bug563000" else ""}
53+ ${if stdenv.isAarch32 then "rm -r jit-test/tests/jaeger/bug563000" else ""}
5454 '';
5555
5656 enableParallelBuilding = true;
pkgs/development/libraries/ffmpeg/generic.nix+7−7
@@ -7,8 +7,8 @@
77# Build options
88, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
99, multithreadBuild ? true # Multithreading via pthreads/win32 threads
10−, sdlSupport ? !stdenv.isArm, SDL ? null, SDL2 ? null
11−, vdpauSupport ? !stdenv.isArm, libvdpau ? null
10+, sdlSupport ? !stdenv.isAarch32, SDL ? null, SDL2 ? null
11+, vdpauSupport ? !stdenv.isAarch32, libvdpau ? null
1212# Developer options
1313, debugDeveloper ? false
1414, optimizationsDeveloper ? true
@@ -42,7 +42,7 @@
4242 */
4343
4444let
45− inherit (stdenv) icCygwin isDarwin isFreeBSD isLinux isArm;
45+ inherit (stdenv) icCygwin isDarwin isFreeBSD isLinux isAarch32;
4646 inherit (stdenv.lib) optional optionals enableFeature;
4747
4848 cmpVer = builtins.compareVersions;
@@ -55,9 +55,9 @@ let
5555 verFix = withoutFix: fixVer: withFix: if reqMatch fixVer then withFix else withoutFix;
5656
5757 # Disable dependency that needs fixes before it will work on Darwin or Arm
58− disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg;
58+ disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isAarch32) && reqMin minVer) then fixArg else origArg;
5959
60− vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm);
60+ vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isAarch32);
6161in
6262
6363assert openglSupport -> libGLU_combined != null;
@@ -153,8 +153,8 @@ stdenv.mkDerivation rec {
153153 bzip2 fontconfig freetype gnutls libiconv lame libass libogg libtheora
154154 libvdpau libvorbis lzma soxr x264 x265 xvidcore zlib libopus
155155 ] ++ optional openglSupport libGLU_combined
156− ++ optionals (!isDarwin && !isArm) [ libvpx libpulseaudio ] # Need to be fixed on Darwin and ARM
157− ++ optional ((isLinux || isFreeBSD) && !isArm) libva
156+ ++ optionals (!isDarwin && !isAarch32) [ libvpx libpulseaudio ] # Need to be fixed on Darwin and ARM
157+ ++ optional ((isLinux || isFreeBSD) && !isAarch32) libva
158158 ++ optional isLinux alsaLib
159159 ++ optionals isDarwin darwinFrameworks
160160 ++ optional vdpauSupport libvdpau
pkgs/development/libraries/freetype/default.nix+1−1
@@ -59,7 +59,7 @@ in stdenv.mkDerivation {
5959 configureFlags = [ "--disable-static" "--bindir=$(dev)/bin" ];
6060
6161 # The asm for armel is written with the 'asm' keyword.
62− CFLAGS = optionalString stdenv.isArm "-std=gnu99";
62+ CFLAGS = optionalString stdenv.isAarch32 "-std=gnu99";
6363
6464 enableParallelBuilding = true;
6565
pkgs/development/libraries/glibc/common-2.27.nix+1−1
@@ -110,7 +110,7 @@ stdenv.mkDerivation ({
110110 (if cross ? float && cross.float == "soft" then "--without-fp" else "--with-fp")
111111 ] ++ lib.optionals (cross != null) [
112112 "--with-__thread"
113− ] ++ lib.optionals (cross == null && stdenv.isArm) [
113+ ] ++ lib.optionals (cross == null && stdenv.isAarch32) [
114114 "--host=arm-linux-gnueabi"
115115 "--build=arm-linux-gnueabi"
116116
pkgs/development/libraries/glibc/common.nix+1−1
@@ -130,7 +130,7 @@ stdenv.mkDerivation ({
130130 (if cross ? float && cross.float == "soft" then "--without-fp" else "--with-fp")
131131 ] ++ lib.optionals (cross != null) [
132132 "--with-__thread"
133− ] ++ lib.optionals (cross == null && stdenv.isArm) [
133+ ] ++ lib.optionals (cross == null && stdenv.isAarch32) [
134134 "--host=arm-linux-gnueabi"
135135 "--build=arm-linux-gnueabi"
136136
pkgs/development/libraries/gmp/5.1.x.nix+1−1
@@ -37,7 +37,7 @@ let self = stdenv.mkDerivation rec {
3737 # The config.guess in GMP tries to runtime-detect various
3838 # ARM optimization flags via /proc/cpuinfo (and is also
3939 # broken on multicore CPUs). Avoid this impurity.
40− preConfigure = optionalString stdenv.isArm ''
40+ preConfigure = optionalString stdenv.isAarch32 ''
4141 configureFlagsArray+=("--build=$(./configfsf.guess)")
4242 '';
4343
pkgs/development/libraries/gmp/6.x.nix+1−1
@@ -38,7 +38,7 @@ let self = stdenv.mkDerivation rec {
3838 # The config.guess in GMP tries to runtime-detect various
3939 # ARM optimization flags via /proc/cpuinfo (and is also
4040 # broken on multicore CPUs). Avoid this impurity.
41− preConfigure = optionalString stdenv.isArm ''
41+ preConfigure = optionalString stdenv.isAarch32 ''
4242 configureFlagsArray+=("--build=$(./configfsf.guess)")
4343 '';
4444
pkgs/development/libraries/gnu-efi/default.nix+1−1
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
2121 "AR=${stdenv.cc.targetPrefix}ar"
2222 "RANLIB=${stdenv.cc.targetPrefix}ranlib"
2323 "OBJCOPY=${stdenv.cc.targetPrefix}objcopy"
24− ] ++ stdenv.lib.optional stdenv.isArm "ARCH=arm"
24+ ] ++ stdenv.lib.optional stdenv.isAarch32 "ARCH=arm"
2525 ++ stdenv.lib.optional stdenv.isAarch64 "ARCH=aarch64";
2626
2727 meta = with stdenv.lib; {
pkgs/development/libraries/icu/base.nix+1−1
@@ -31,7 +31,7 @@ let
3131
3232 # $(includedir) is different from $(prefix)/include due to multiple outputs
3333 sed -i -e 's|^\(CPPFLAGS = .*\) -I\$(prefix)/include|\1 -I$(includedir)|' config/Makefile.inc.in
34− '' + stdenv.lib.optionalString stdenv.isArm ''
34+ '' + stdenv.lib.optionalString stdenv.isAarch32 ''
3535 # From https://archlinuxarm.org/packages/armv7h/icu/files/icudata-stdlibs.patch
3636 sed -e 's/LDFLAGSICUDT=-nodefaultlibs -nostdlib/LDFLAGSICUDT=/' -i config/mh-linux
3737 '';
pkgs/development/libraries/jemalloc/default.nix+1−1
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
1616 # jemalloc is unable to correctly detect transparent hugepage support on
1717 # ARM (https://github.com/jemalloc/jemalloc/issues/526), and the default
1818 # kernel ARMv6/7 kernel does not enable it, so we explicitly disable support
19− ++ stdenv.lib.optional stdenv.isArm "--disable-thp";
19+ ++ stdenv.lib.optional stdenv.isAarch32 "--disable-thp";
2020 doCheck = true;
2121
2222 patches = stdenv.lib.optional stdenv.isAarch64 (fetchpatch {
pkgs/development/libraries/libdrm/default.nix+1−1
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020 "echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache";
2121
2222 configureFlags = [ "--enable-install-test-programs" ]
23− ++ stdenv.lib.optionals (stdenv.isArm || stdenv.isAarch64)
23+ ++ stdenv.lib.optionals (stdenv.isAarch32 || stdenv.isAarch64)
2424 [ "--enable-tegra-experimental-api" "--enable-etnaviv-experimental-api" ]
2525 ++ stdenv.lib.optional stdenv.isDarwin "-C";
2626
pkgs/development/libraries/libtoxcore/default.nix+1−1
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020
2121 buildInputs = [
2222 libsodium libmsgpack ncurses libconfig
23− ] ++ stdenv.lib.optionals (!stdenv.isArm) [
23+ ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
2424 libopus
2525 libvpx
2626 ];
pkgs/development/libraries/libtoxcore/new-api.nix+2−2
@@ -33,11 +33,11 @@ stdenv.mkDerivation rec {
3333 nativeBuildInputs = [ autoreconfHook pkgconfig ];
3434 buildInputs = [
3535 autoreconfHook libsodium ncurses check libconfig
36− ] ++ stdenv.lib.optionals (!stdenv.isArm) [
36+ ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
3737 libopus
3838 ];
3939
40− propagatedBuildInputs = stdenv.lib.optionals (!stdenv.isArm) [ libvpx ];
40+ propagatedBuildInputs = stdenv.lib.optionals (!stdenv.isAarch32) [ libvpx ];
4141
4242 # Some tests fail randomly due to timeout. This kind of problem is well known
4343 # by upstream: https://github.com/irungentoo/toxcore/issues/{950,1054}
pkgs/development/libraries/libvpx/default.nix+1−1
@@ -41,7 +41,7 @@
4141}:
4242
4343let
44− inherit (stdenv) isi686 isx86_64 isArm is64bit isMips isDarwin isCygwin;
44+ inherit (stdenv) isi686 isx86_64 isAarch32 is64bit isMips isDarwin isCygwin;
4545 inherit (stdenv.lib) enableFeature optional optionals;
4646in
4747
pkgs/development/libraries/libvpx/git.nix+2−2
@@ -43,11 +43,11 @@
4343}:
4444
4545let
46− inherit (stdenv) isi686 isx86_64 isArm is64bit isMips isDarwin isCygwin;
46+ inherit (stdenv) isi686 isx86_64 isAarch32 is64bit isMips isDarwin isCygwin;
4747 inherit (stdenv.lib) enableFeature optional optionals;
4848in
4949
50−assert isi686 || isx86_64 || isArm || isMips; # Requires ARM with floating point support
50+assert isi686 || isx86_64 || isAarch32 || isMips; # Requires ARM with floating point support
5151
5252assert vp8DecoderSupport || vp8EncoderSupport || vp9DecoderSupport || vp9EncoderSupport;
5353assert internalStatsSupport && (vp9DecoderSupport || vp9EncoderSupport) -> postprocSupport;
pkgs/development/libraries/mesa/default.nix+3−3
@@ -32,17 +32,17 @@ else
3232
3333let
3434 defaultGalliumDrivers =
35− if stdenv.isArm
35+ if stdenv.isAarch32
3636 then ["nouveau" "freedreno" "vc4" "etnaviv" "imx"]
3737 else if stdenv.isAarch64
3838 then ["nouveau" "vc4" ]
3939 else ["svga" "i915" "r300" "r600" "radeonsi" "nouveau"];
4040 defaultDriDrivers =
41− if (stdenv.isArm || stdenv.isAarch64)
41+ if (stdenv.isAarch32 || stdenv.isAarch64)
4242 then ["nouveau"]
4343 else ["i915" "i965" "nouveau" "radeon" "r200"];
4444 defaultVulkanDrivers =
45− if (stdenv.isArm || stdenv.isAarch64)
45+ if (stdenv.isAarch32 || stdenv.isAarch64)
4646 then []
4747 else ["intel"] ++ lib.optional enableRadv "radeon";
4848in
pkgs/development/libraries/pixman/default.nix+1−1
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222
2323 buildInputs = stdenv.lib.optional doCheck libpng;
2424
25− configureFlags = stdenv.lib.optional stdenv.isArm "--disable-arm-iwmmxt";
25+ configureFlags = stdenv.lib.optional stdenv.isAarch32 "--disable-arm-iwmmxt";
2626
2727 doCheck = true;
2828
pkgs/development/libraries/pth/default.nix+1−1
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
99 };
1010
11− preConfigure = stdenv.lib.optionalString stdenv.isArm ''
11+ preConfigure = stdenv.lib.optionalString stdenv.isAarch32 ''
1212 configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
1313 '';
1414
pkgs/development/libraries/v8/3.16.14.nix+2−2
@@ -3,10 +3,10 @@
33assert readline != null;
44
55let
6− arch = if stdenv.isArm
6+ arch = if stdenv.isAarch32
77 then (if stdenv.is64bit then "arm64" else "arm")
88 else (if stdenv.is64bit then "x64" else "ia32");
9− armHardFloat = stdenv.isArm && (stdenv.platform.gcc.float or null) == "hard";
9+ armHardFloat = stdenv.isAarch32 && (stdenv.platform.gcc.float or null) == "hard";
1010in
1111
1212stdenv.mkDerivation rec {
pkgs/development/libraries/v8/6_x.nix+1−1
@@ -4,7 +4,7 @@
44}:
55
66let
7− arch = if stdenv.isArm
7+ arch = if stdenv.isAarch32
88 then if stdenv.is64bit
99 then"arm64"
1010 else "arm"
pkgs/development/libraries/v8/default.nix+1−1
@@ -10,7 +10,7 @@ let
1010 arch = if stdenv.isx86_64 then "x64"
1111 else if stdenv.isi686 then "ia32"
1212 else if stdenv.isAarch64 then "arm64"
13− else if stdenv.isArm then "arm"
13+ else if stdenv.isAarch32 then "arm"
1414 else throw "Unknown architecture for v8";
1515 git_url = "https://chromium.googlesource.com";
1616 clangFlag = if stdenv.isDarwin then "1" else "0";
pkgs/development/libraries/webrtc-audio-processing/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010
1111 # Avoid this error:
1212 # signal_processing/filter_ar_fast_q12_armv7.S:88: Error: selected processor does not support `sbfx r11,r6,#12,#16' in ARM mode
13− patchPhase = stdenv.lib.optionalString stdenv.isArm ''
13+ patchPhase = stdenv.lib.optionalString stdenv.isAarch32 ''
1414 substituteInPlace configure --replace 'armv7*|armv8*' 'disabled'
1515 '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
1616 substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1
pkgs/development/python-modules/Cython/default.nix+1−1
@@ -25,7 +25,7 @@ buildPythonPackage rec {
2525 # result is "3L" instead of "3", so let's fix it in-place.
2626 #
2727 # Upstream issue: https://github.com/cython/cython/issues/1548
28− postPatch = lib.optionalString ((stdenv.isi686 || stdenv.isArm) && !isPy3k) ''
28+ postPatch = lib.optionalString ((stdenv.isi686 || stdenv.isAarch32) && !isPy3k) ''
2929 sed -i -e 's/\(>>> *\)\(verify_resolution_GH1533()\)/\1int(\2)/' \
3030 tests/run/cpdef_enums.pyx
3131 '';
pkgs/development/tools/misc/binutils/2.30.nix+1−1
@@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
9090 # TODO(@Ericson2314): Always pass "--target" and always targetPrefix.
9191 configurePlatforms =
9292 # TODO(@Ericson2314): Figure out what's going wrong with Arm
93− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
93+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
9494 then []
9595 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
9696
pkgs/development/tools/misc/binutils/default.nix+1−1
@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
9393 # TODO(@Ericson2314): Always pass "--target" and always targetPrefix.
9494 configurePlatforms =
9595 # TODO(@Ericson2314): Figure out what's going wrong with Arm
96− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
96+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
9797 then []
9898 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
9999
pkgs/os-specific/linux/kbd/default.nix+1−1
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232
3333 # We get a warning in armv5tel-linux and the fuloong2f, so we
3434 # disable -Werror in it.
35− ${stdenv.lib.optionalString (stdenv.isArm || stdenv.hostPlatform.isMips) ''
35+ ${stdenv.lib.optionalString (stdenv.isAarch32 || stdenv.hostPlatform.isMips) ''
3636 sed -i s/-Werror// src/Makefile.am
3737 ''}
3838 '';
pkgs/os-specific/linux/kernel/common-config.nix+1−1
@@ -353,7 +353,7 @@ with stdenv.lib;
353353 SECURITY_SELINUX_BOOTPARAM_VALUE 0 # Disable SELinux by default
354354 SECURITY_YAMA? y # Prevent processes from ptracing non-children processes
355355 DEVKMEM n # Disable /dev/kmem
356− ${optionalString (! stdenv.hostPlatform.isArm)
356+ ${optionalString (! stdenv.hostPlatform.isAarch32)
357357 (if versionOlder version "3.14" then ''
358358 CC_STACKPROTECTOR? y # Detect buffer overflows on the stack
359359 '' else ''
pkgs/os-specific/linux/systemd/default.nix+1−1
@@ -70,7 +70,7 @@ in stdenv.mkDerivation rec {
7070 "-Dsystem-gid-max=499"
7171 # "-Dtime-epoch=1"
7272
73− (if stdenv.isArm || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
73+ (if stdenv.isAarch32 || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
7474 "-Defi-libdir=${toString gnu-efi}/lib"
7575 "-Defi-includedir=${toString gnu-efi}/include/efi"
7676 "-Defi-ldsdir=${toString gnu-efi}/lib"
pkgs/os-specific/linux/uclibc/default.nix+1−1
@@ -43,7 +43,7 @@ let
4343 UCLIBC_SUSV4_LEGACY y
4444 UCLIBC_HAS_THREADS_NATIVE y
4545 KERNEL_HEADERS "${linuxHeaders}/include"
46− '' + stdenv.lib.optionalString (stdenv.isArm && cross == null) ''
46+ '' + stdenv.lib.optionalString (stdenv.isAarch32 && cross == null) ''
4747 CONFIG_ARM_EABI y
4848 ARCH_WANTS_BIG_ENDIAN n
4949 ARCH_BIG_ENDIAN n
pkgs/servers/sql/mariadb/default.nix+1−1
@@ -123,7 +123,7 @@ everything = stdenv.mkDerivation (common // {
123123 buildInputs = common.buildInputs ++ [
124124 xz lzo lz4 bzip2 snappy
125125 libxml2 boost judy libevent cracklib
126− ] ++ optional (stdenv.isLinux && !stdenv.isArm) numactl;
126+ ] ++ optional (stdenv.isLinux && !stdenv.isAarch32) numactl;
127127
128128 cmakeFlags = common.cmakeFlags ++ [
129129 "-DMYSQL_DATADIR=/var/lib/mysql"
pkgs/stdenv/generic/default.nix+1−1
@@ -117,7 +117,7 @@ let
117117 # Utility flags to test the type of platform.
118118 inherit (hostPlatform)
119119 isDarwin isLinux isSunOS isHurd isCygwin isFreeBSD isOpenBSD
120− isi686 isx86_64 is64bit isArm isAarch64 isMips isBigEndian;
120+ isi686 isx86_64 is64bit isAarch32 isAarch64 isMips isBigEndian;
121121
122122 # Whether we should run paxctl to pax-mark binaries.
123123 needsPax = isLinux;
pkgs/tools/networking/cjdns/default.nix+1−1
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
1616 stdenv.lib.optional stdenv.isLinux utillinux;
1717
1818 buildPhase =
19− stdenv.lib.optionalString stdenv.isArm "Seccomp_NO=1 "
19+ stdenv.lib.optionalString stdenv.isAarch32 "Seccomp_NO=1 "
2020 + "bash do";
2121 installPhase = ''
2222 install -Dt "$out/bin/" cjdroute makekeys privatetopublic publictoip6
pkgs/tools/networking/filegive/default.nix+1−1
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchgit, go }:
22
3−assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
3+assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isAarch32);
44
55let
66
pkgs/tools/system/storebrowse/default.nix+1−1
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchhg, go, sqlite}:
22
3−assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
3+assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isAarch32);
44
55stdenv.mkDerivation rec {
66 name = "storebrowse-20130318212204";
pkgs/top-level/all-packages.nix+8−8
@@ -5988,7 +5988,7 @@ with pkgs;
59885988
59895989 # bootstrapping a profiled compiler does not work in the sheevaplug:
59905990 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43944
5991− profiledCompiler = !stdenv.isArm;
5991+ profiledCompiler = !stdenv.isAarch32;
59925992
59935993 libcCross = if targetPlatform != buildPlatform then libcCross else null;
59945994 }));
@@ -6352,12 +6352,12 @@ with pkgs;
63526352 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
63536353 (openjdk7.jre // { outputs = [ "jre" ]; }));
63546354
6355− jdk8 = if stdenv.isArm || stdenv.isAarch64 then oraclejdk8 else openjdk8 // { outputs = [ "out" ]; };
6356− jre8 = if stdenv.isArm || stdenv.isAarch64 then oraclejre8 else lib.setName "openjre-${lib.getVersion pkgs.openjdk8.jre}"
6355+ jdk8 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejdk8 else openjdk8 // { outputs = [ "out" ]; };
6356+ jre8 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejre8 else lib.setName "openjre-${lib.getVersion pkgs.openjdk8.jre}"
63576357 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
63586358 (openjdk8.jre // { outputs = [ "jre" ]; }));
63596359 jre8_headless =
6360− if stdenv.isArm || stdenv.isAarch64 then
6360+ if stdenv.isAarch32 || stdenv.isAarch64 then
63616361 oraclejre8
63626362 else if stdenv.isDarwin then
63636363 jre8
@@ -6366,12 +6366,12 @@ with pkgs;
63666366 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
63676367 ((openjdk8.override { minimal = true; }).jre // { outputs = [ "jre" ]; }));
63686368
6369− jdk9 = if stdenv.isArm || stdenv.isAarch64 then oraclejdk9 else openjdk9 // { outputs = [ "out" ]; };
6370− jre9 = if stdenv.isArm || stdenv.isAarch64 then oraclejre9 else lib.setName "openjre-${lib.getVersion pkgs.openjdk9.jre}"
6369+ jdk9 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejdk9 else openjdk9 // { outputs = [ "out" ]; };
6370+ jre9 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejre9 else lib.setName "openjre-${lib.getVersion pkgs.openjdk9.jre}"
63716371 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
63726372 (openjdk9.jre // { outputs = [ "jre" ]; }));
63736373 jre9_headless =
6374− if stdenv.isArm || stdenv.isAarch64 then
6374+ if stdenv.isAarch32 || stdenv.isAarch64 then
63756375 oraclejre9
63766376 else if stdenv.isDarwin then
63776377 jre9
@@ -9126,7 +9126,7 @@ with pkgs;
91269126
91279127 cairo = callPackage ../development/libraries/cairo {
91289128 glSupport = config.cairo.gl or (stdenv.isLinux &&
9129− !stdenv.isArm && !stdenv.isMips);
9129+ !stdenv.isAarch32 && !stdenv.isMips);
91309130 };
91319131
91329132