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
commitba52ae50488de85a9cf60a3a04f1c9ca7122ec74
authorJohn Ericson <John.Ericson@Obsidian.Systems>
dateMon 19 Mar 2018, 22:41 (9 years ago)
parente40213e
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 all = [ {} ]; # `{}` matches anything
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"; }; };
@@ -41,6 +41,9 @@ rec {
4141
4242 isEfi = map (family: { cpu.family = family; })
4343 [ "x86" "arm" "aarch64" ];
44+
45+ # Deprecated
46+ isArm = isAarch32;
4447 };
4548
4649 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.
nixos/modules/virtualisation/qemu-vm.nix+1−1
@@ -437,7 +437,7 @@ in
437437 # FIXME: Consolidate this one day.
438438 virtualisation.qemu.options = mkMerge [
439439 (mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ])
440− (mkIf (pkgs.stdenv.isArm || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
440+ (mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
441441 ];
442442
443443 # Mount the host filesystem via 9P, and bind-mount the Nix store
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, SDL2
@@ -29,7 +29,7 @@ let
2929
3030 hostCpuTargets = if stdenv.isx86_64 then "i386-softmmu,x86_64-softmmu"
3131 else if stdenv.isi686 then "i386-softmmu"
32− else if stdenv.isArm then "arm-softmmu"
32+ else if stdenv.isAarch32 then "arm-softmmu"
3333 else if stdenv.isAarch64 then "aarch64-softmmu"
3434 else throw "Don't know how to build a 'hostCpuOnly = true' QEMU";
3535in
@@ -135,7 +135,7 @@ stdenv.mkDerivation rec {
135135 postInstall =
136136 if stdenv.isx86_64 then ''makeWrapper $out/bin/qemu-system-x86_64 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
137137 else if stdenv.isi686 then ''makeWrapper $out/bin/qemu-system-i386 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
138− else if stdenv.isArm then ''makeWrapper $out/bin/qemu-system-arm $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
138+ else if stdenv.isAarch32 then ''makeWrapper $out/bin/qemu-system-arm $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
139139 else if stdenv.isAarch64 then ''makeWrapper $out/bin/qemu-system-aarch64 $out/bin/qemu-kvm --add-flags "\$([ -e /dev/kvm ] && echo -enable-kvm)"''
140140 else "";
141141
pkgs/build-support/bintools-wrapper/default.nix+2−2
@@ -57,7 +57,7 @@ let
5757 else if targetPlatform.system == "i686-linux" then "${libc_lib}/lib/ld-linux.so.2"
5858 else if targetPlatform.system == "x86_64-linux" then "${libc_lib}/lib/ld-linux-x86-64.so.2"
5959 # ARM with a wildcard, which can be "" or "-armhf".
60− else if (with targetPlatform; isArm && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
60+ else if (with targetPlatform; isAarch32 && isLinux) then "${libc_lib}/lib/ld-linux*.so.3"
6161 else if targetPlatform.system == "aarch64-linux" then "${libc_lib}/lib/ld-linux-aarch64.so.1"
6262 else if targetPlatform.system == "powerpc-linux" then "${libc_lib}/lib/ld.so.1"
6363 else if targetPlatform.isMips then "${libc_lib}/lib/ld.so.1"
@@ -176,7 +176,7 @@ stdenv.mkDerivation {
176176 sep = optionalString (!targetPlatform.isMips) "-";
177177 arch =
178178 /**/ if targetPlatform.isAarch64 then endianPrefix + "aarch64"
179− else if targetPlatform.isArm then endianPrefix + "arm"
179+ else if targetPlatform.isAarch32 then endianPrefix + "arm"
180180 else if targetPlatform.isx86_64 then "x86-64"
181181 else if targetPlatform.isi686 then "i386"
182182 else if targetPlatform.isMips then {
pkgs/development/compilers/gcc/4.8/default.nix+1−1
@@ -289,7 +289,7 @@ stdenv.mkDerivation ({
289289 # TODO(@Ericson2314): Always pass "--target" and always prefix.
290290 configurePlatforms =
291291 # TODO(@Ericson2314): Figure out what's going wrong with Arm
292− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
292+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
293293 then []
294294 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
295295
pkgs/development/compilers/gcc/4.9/default.nix+1−1
@@ -298,7 +298,7 @@ stdenv.mkDerivation ({
298298 # TODO(@Ericson2314): Always pass "--target" and always prefix.
299299 configurePlatforms =
300300 # TODO(@Ericson2314): Figure out what's going wrong with Arm
301− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
301+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
302302 then []
303303 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
304304
pkgs/development/compilers/gcc/5/default.nix+1−1
@@ -318,7 +318,7 @@ stdenv.mkDerivation ({
318318 # TODO(@Ericson2314): Always pass "--target" and always prefix.
319319 configurePlatforms =
320320 # TODO(@Ericson2314): Figure out what's going wrong with Arm
321− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
321+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
322322 then []
323323 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
324324
pkgs/development/compilers/gcc/6/default.nix+1−1
@@ -322,7 +322,7 @@ stdenv.mkDerivation ({
322322 # TODO(@Ericson2314): Always pass "--target" and always prefix.
323323 configurePlatforms =
324324 # TODO(@Ericson2314): Figure out what's going wrong with Arm
325− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
325+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
326326 then []
327327 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
328328
pkgs/development/compilers/gcc/7/default.nix+1−1
@@ -327,7 +327,7 @@ stdenv.mkDerivation ({
327327 # TODO(@Ericson2314): Always pass "--target" and always prefix.
328328 configurePlatforms =
329329 # TODO(@Ericson2314): Figure out what's going wrong with Arm
330− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
330+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
331331 then []
332332 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
333333
pkgs/development/compilers/gcc/snapshot/default.nix+1−1
@@ -290,7 +290,7 @@ stdenv.mkDerivation ({
290290 # TODO(@Ericson2314): Always pass "--target" and always prefix.
291291 configurePlatforms =
292292 # TODO(@Ericson2314): Figure out what's going wrong with Arm
293− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
293+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
294294 then []
295295 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
296296
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
@@ -26,7 +26,7 @@
2626 enableShared ?
2727 !(targetPlatform.isDarwin
2828 # On iOS, dynamic linking is not supported
29− && (targetPlatform.isAarch64 || targetPlatform.isArm))
29+ && (targetPlatform.isAarch64 || targetPlatform.isAarch32))
3030, # Whether to backport https://phabricator.haskell.org/D4388 for
3131 # deterministic profiling symbol names, at the cost of a slightly
3232 # non-standard GHC API
@@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
109109 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
110110 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
111111 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
112− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
112+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
113113 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
114114 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
115115 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -138,7 +138,7 @@ stdenv.mkDerivation rec {
138138 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
139139 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
140140 "--enable-bootstrap-with-devel-snapshot"
141− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
141+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
142142 "CFLAGS=-fuse-ld=gold"
143143 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
144144 "CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
pkgs/development/compilers/ghc/8.4.1.nix+2−2
@@ -106,7 +106,7 @@ stdenv.mkDerivation rec {
106106 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
107107 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
108108 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
109− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
109+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
110110 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
111111 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
112112 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -138,7 +138,7 @@ stdenv.mkDerivation rec {
138138 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
139139 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
140140 "--enable-bootstrap-with-devel-snapshot"
141− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
141+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
142142 "CFLAGS=-fuse-ld=gold"
143143 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
144144 "CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
pkgs/development/compilers/ghc/8.4.2.nix+2−2
@@ -91,7 +91,7 @@ stdenv.mkDerivation rec {
9191 export CC="${targetCC}/bin/${targetCC.targetPrefix}cc"
9292 export CXX="${targetCC}/bin/${targetCC.targetPrefix}cxx"
9393 # Use gold to work around https://sourceware.org/bugzilla/show_bug.cgi?id=16177
94− export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isArm ".gold"}"
94+ export LD="${targetCC.bintools}/bin/${targetCC.bintools.targetPrefix}ld${stdenv.lib.optionalString targetPlatform.isAarch32 ".gold"}"
9595 export AS="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}as"
9696 export AR="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}ar"
9797 export NM="${targetCC.bintools.bintools}/bin/${targetCC.bintools.targetPrefix}nm"
@@ -120,7 +120,7 @@ stdenv.mkDerivation rec {
120120 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
121121 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
122122 "--enable-bootstrap-with-devel-snapshot"
123− ] ++ stdenv.lib.optionals (targetPlatform.isArm) [
123+ ] ++ stdenv.lib.optionals (targetPlatform.isAarch32) [
124124 "CFLAGS=-fuse-ld=gold"
125125 "CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
126126 "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
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
8585
8686 '' + optionalString stdenv.isLinux ''
8787 sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
88− '' + optionalString stdenv.isArm ''
88+ '' + optionalString stdenv.isAarch32 ''
8989 sed -i '/TestCurrent/areturn' src/os/user/user_test.go
9090 echo '#!${stdenv.shell}' > misc/cgo/testplugin/test.bash
9191 '' + optionalString stdenv.isDarwin ''
@@ -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 if stdenv.isAarch64 then "arm64"
135135 else throw "Unsupported system";
136136 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
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
8585
8686 '' + optionalString stdenv.isLinux ''
8787 sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
88− '' + optionalString stdenv.isArm ''
88+ '' + optionalString stdenv.isAarch32 ''
8989 sed -i '/TestCurrent/areturn' src/os/user/user_test.go
9090 echo '#!${stdenv.shell}' > misc/cgo/testplugin/test.bash
9191 '' + optionalString stdenv.isDarwin ''
@@ -132,7 +132,7 @@ stdenv.mkDerivation rec {
132132 GOARCH = if stdenv.isDarwin then "amd64"
133133 else if stdenv.system == "i686-linux" then "386"
134134 else if stdenv.system == "x86_64-linux" then "amd64"
135− else if stdenv.isArm then "arm"
135+ else if stdenv.isAarch32 then "arm"
136136 else if stdenv.isAarch64 then "arm64"
137137 else throw "Unsupported system";
138138 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
@@ -932,11 +932,11 @@ self: super: {
932932 JuicyPixels = dontHaddock super.JuicyPixels;
933933
934934 # aarch64 and armv7l fixes.
935− happy = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.happy else super.happy; # Similar to https://ghc.haskell.org/trac/ghc/ticket/13062
936− hashable = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.hashable else super.hashable; # https://github.com/tibbe/hashable/issues/95
937− servant-docs = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.servant-docs else super.servant-docs;
938− servant-swagger = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.servant-swagger else super.servant-swagger;
939− swagger2 = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontHaddock (dontCheck super.swagger2) else super.swagger2;
935+ happy = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.happy else super.happy; # Similar to https://ghc.haskell.org/trac/ghc/ticket/13062
936+ hashable = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.hashable else super.hashable; # https://github.com/tibbe/hashable/issues/95
937+ servant-docs = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.servant-docs else super.servant-docs;
938+ servant-swagger = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.servant-swagger else super.servant-swagger;
939+ swagger2 = if (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) then dontHaddock (dontCheck super.swagger2) else super.swagger2;
940940
941941 # Tries to read a file it is not allowed to in the test suite
942942 load-env = dontCheck super.load-env;
pkgs/development/haskell-modules/generic-builder.nix+1−1
@@ -136,7 +136,7 @@ let
136136 (optionalString (enableSharedExecutables && stdenv.isDarwin) "--ghc-option=-optl=-Wl,-headerpad_max_install_names")
137137 (optionalString enableParallelBuilding "--ghc-option=-j$NIX_BUILD_CORES")
138138 (optionalString useCpphs "--with-cpphs=${cpphs}/bin/cpphs --ghc-options=-cpp --ghc-options=-pgmP${cpphs}/bin/cpphs --ghc-options=-optP--cpp")
139− (enableFeature (enableDeadCodeElimination && !hostPlatform.isArm && !hostPlatform.isAarch64 && (versionAtLeast "8.0.1" ghc.version)) "split-objs")
139+ (enableFeature (enableDeadCodeElimination && !hostPlatform.isAarch32 && !hostPlatform.isAarch64 && (versionAtLeast "8.0.1" ghc.version)) "split-objs")
140140 (enableFeature enableLibraryProfiling "library-profiling")
141141 (optionalString ((enableExecutableProfiling || enableLibraryProfiling) && versionOlder "8" ghc.version) "--profiling-detail=${profilingDetail}")
142142 (enableFeature enableExecutableProfiling (if versionOlder ghc.version "8" then "executable-profiling" else "profiling"))
pkgs/development/interpreters/perl/default.nix+1−1
@@ -86,7 +86,7 @@ let
8686
8787 preConfigure = optionalString (!crossCompiling) ''
8888 configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
89− '' + optionalString (stdenv.isArm || stdenv.isMips) ''
89+ '' + optionalString (stdenv.isAarch32 || stdenv.isMips) ''
9090 configureFlagsArray=(-Dldflags="-lm -lrt")
9191 '' + optionalString stdenv.isDarwin ''
9292 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
@@ -52,7 +52,7 @@ in stdenv.mkDerivation rec {
5252 configureFlags = [ "--disable-static" "--bindir=$(dev)/bin" ];
5353
5454 # The asm for armel is written with the 'asm' keyword.
55− CFLAGS = optionalString stdenv.isArm "-std=gnu99";
55+ CFLAGS = optionalString stdenv.isAarch32 "-std=gnu99";
5656
5757 enableParallelBuilding = true;
5858
pkgs/development/libraries/glibc/common.nix+1−1
@@ -127,7 +127,7 @@ stdenv.mkDerivation ({
127127 (if cross ? float && cross.float == "soft" then "--without-fp" else "--with-fp")
128128 ] ++ lib.optionals (cross != null) [
129129 "--with-__thread"
130− ] ++ lib.optionals (cross == null && stdenv.isArm) [
130+ ] ++ lib.optionals (cross == null && stdenv.isAarch32) [
131131 "--host=arm-linux-gnueabi"
132132 "--build=arm-linux-gnueabi"
133133
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/common.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 enableParallelBuilding = true;
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
@@ -33,17 +33,17 @@ else
3333
3434let
3535 defaultGalliumDrivers =
36− if stdenv.isArm
36+ if stdenv.isAarch32
3737 then ["nouveau" "freedreno" "vc4" "etnaviv" "imx"]
3838 else if stdenv.isAarch64
3939 then ["nouveau" "vc4" ]
4040 else ["svga" "i915" "r300" "r600" "radeonsi" "nouveau"];
4141 defaultDriDrivers =
42− if (stdenv.isArm || stdenv.isAarch64)
42+ if (stdenv.isAarch32 || stdenv.isAarch64)
4343 then ["nouveau"]
4444 else ["i915" "i965" "nouveau" "radeon" "r200"];
4545 defaultVulkanDrivers =
46− if (stdenv.isArm || stdenv.isAarch64)
46+ if (stdenv.isAarch32 || stdenv.isAarch64)
4747 then []
4848 else ["intel"] ++ lib.optional enableRadv "radeon";
4949in
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/tools/misc/binutils/default.nix+1−1
@@ -100,7 +100,7 @@ stdenv.mkDerivation rec {
100100 # TODO(@Ericson2314): Always pass "--target" and always targetPrefix.
101101 configurePlatforms =
102102 # TODO(@Ericson2314): Figure out what's going wrong with Arm
103− if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
103+ if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isAarch32
104104 then []
105105 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
106106
pkgs/development/tools/misc/uhd/default.nix+2−2
@@ -38,14 +38,14 @@ in stdenv.mkDerivation {
3838 # /nix/store/wd6r25miqbk9ia53pp669gn4wrg9n9cj-gcc-7.3.0/include/c++/7.3.0/bits/vector.tcc:394:7: note: parameter passing for argument of type 'std::vector<uhd::range_t>::iterator {aka __gnu_cxx::__normal_iterator<uhd::range_t*, std::vector<uhd::range_t> >}' changed in GCC 7.1
3939
4040 cmakeFlags = [ "-DLIBUSB_INCLUDE_DIRS=${libusb1.dev}/include/libusb-1.0"] ++
41− [ (stdenv.lib.optionalString stdenv.isArm "-DCMAKE_CXX_FLAGS=-Wno-psabi") ];
41+ [ (stdenv.lib.optionalString stdenv.isAarch32 "-DCMAKE_CXX_FLAGS=-Wno-psabi") ];
4242
4343 nativeBuildInputs = [ cmake pkgconfig ];
4444 buildInputs = [ python pythonPackages.pyramid_mako orc libusb1 boost ];
4545
4646 # Build only the host software
4747 preConfigure = "cd host";
48− patches = if stdenv.isArm then ./neon.patch else null;
48+ patches = if stdenv.isAarch32 then ./neon.patch else null;
4949
5050 postPhases = [ "installFirmware" ];
5151
pkgs/os-specific/darwin/apple-source-releases/system_cmds/default.nix+1−1
@@ -11,7 +11,7 @@ appleDerivation rec {
1111 apple_sdk.frameworks.IOKit openbsm ];
1212 # NIX_CFLAGS_COMPILE = lib.optionalString hostPlatform.isi686 "-D__i386__"
1313 # + lib.optionalString hostPlatform.isx86_64 "-D__x86_64__"
14− # + lib.optionalString hostPlatform.isArm "-D__arm__";
14+ # + lib.optionalString hostPlatform.isAarch32 "-D__arm__";
1515 NIX_CFLAGS_COMPILE = [ "-DDAEMON_UID=1"
1616 "-DDAEMON_GID=1"
1717 "-DDEFAULT_AT_QUEUE=\'a\'"
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
@@ -355,7 +355,7 @@ with stdenv.lib;
355355 SECURITY_SELINUX_BOOTPARAM_VALUE 0 # Disable SELinux by default
356356 SECURITY_YAMA? y # Prevent processes from ptracing non-children processes
357357 DEVKMEM n # Disable /dev/kmem
358− ${optionalString (! stdenv.hostPlatform.isArm)
358+ ${optionalString (! stdenv.hostPlatform.isAarch32)
359359 (if versionOlder version "3.14" then ''
360360 CC_STACKPROTECTOR? y # Detect buffer overflows on the stack
361361 '' else ''
pkgs/os-specific/linux/systemd/default.nix+1−1
@@ -79,7 +79,7 @@ in stdenv.mkDerivation rec {
7979 "-Dsystem-gid-max=499"
8080 # "-Dtime-epoch=1"
8181
82− (if stdenv.isArm || stdenv.isAarch64 || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
82+ (if stdenv.isAarch32 || stdenv.isAarch64 || !hostPlatform.isEfi then "-Dgnu-efi=false" else "-Dgnu-efi=true")
8383 "-Defi-libdir=${toString gnu-efi}/lib"
8484 "-Defi-includedir=${toString gnu-efi}/include/efi"
8585 "-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+7−7
@@ -6471,12 +6471,12 @@ with pkgs;
64716471
64726472 openjdk = openjdk8;
64736473
6474− jdk8 = if stdenv.isArm || stdenv.isAarch64 then oraclejdk8 else openjdk8 // { outputs = [ "out" ]; };
6475− jre8 = if stdenv.isArm || stdenv.isAarch64 then oraclejre8 else lib.setName "openjre-${lib.getVersion pkgs.openjdk8.jre}"
6474+ jdk8 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejdk8 else openjdk8 // { outputs = [ "out" ]; };
6475+ jre8 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejre8 else lib.setName "openjre-${lib.getVersion pkgs.openjdk8.jre}"
64766476 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
64776477 (openjdk8.jre // { outputs = [ "jre" ]; }));
64786478 jre8_headless =
6479− if stdenv.isArm || stdenv.isAarch64 then
6479+ if stdenv.isAarch32 || stdenv.isAarch64 then
64806480 oraclejre8
64816481 else if stdenv.isDarwin then
64826482 jre8
@@ -6485,12 +6485,12 @@ with pkgs;
64856485 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
64866486 ((openjdk8.override { minimal = true; }).jre // { outputs = [ "jre" ]; }));
64876487
6488− jdk10 = if stdenv.isArm || stdenv.isAarch64 then oraclejdk10 else openjdk10 // { outputs = [ "out" ]; };
6489− jre10 = if stdenv.isArm || stdenv.isAarch64 then oraclejre10 else lib.setName "openjre-${lib.getVersion pkgs.openjdk10.jre}"
6488+ jdk10 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejdk10 else openjdk10 // { outputs = [ "out" ]; };
6489+ jre10 = if stdenv.isAarch32 || stdenv.isAarch64 then oraclejre10 else lib.setName "openjre-${lib.getVersion pkgs.openjdk10.jre}"
64906490 (lib.addMetaAttrs { outputsToInstall = [ "jre" ]; }
64916491 (openjdk10.jre // { outputs = [ "jre" ]; }));
64926492 jre10_headless =
6493− if stdenv.isArm || stdenv.isAarch64 then
6493+ if stdenv.isAarch32 || stdenv.isAarch64 then
64946494 oraclejre10
64956495 else if stdenv.isDarwin then
64966496 jre10
@@ -9247,7 +9247,7 @@ with pkgs;
92479247
92489248 cairo = callPackage ../development/libraries/cairo {
92499249 glSupport = config.cairo.gl or (stdenv.isLinux &&
9250− !stdenv.isArm && !stdenv.isMips);
9250+ !stdenv.isAarch32 && !stdenv.isMips);
92519251 };
92529252
92539253