···57575858 # Hyper-V support.
5959 "hv_storvsc"
6060- ] ++ lib.optionals (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [
6060+ ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch [
6161 # Most of the following falls into two categories:
6262 # - early KMS / early display
6363 # - early storage (e.g. USB) support
···9292 "default_config"
9393 "met"
9494 "esphome"
9595- ] ++ optionals (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) [
9595+ ] ++ optionals pkgs.stdenv.hostPlatform.isAarch [
9696 # Use the platform as an indicator that we might be running on a RaspberryPi and include
9797 # relevant components
9898 "rpi_power"
···11# ARM-SPECIFIC OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
22#
33-# This extension is applied to all haskell package sets in nixpkgs
44-# if `stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64`
55-# to apply arm specific workarounds or fixes.
33+# This extension is applied to all haskell package sets in nixpkgs if
44+# `stdenv.hostPlatform.isAarch` to apply arm specific workarounds or
55+# fixes.
66#
77# The file is split into three parts:
88#
···3030 # emulating build_all.sh configuration variables
3131 jplatform =
3232 if stdenv.isDarwin then "darwin"
3333- else if (stdenv.isAarch32 || stdenv.isAarch64) then "raspberry"
3333+ else if stdenv.hostPlatform.isAarch then "raspberry"
3434 else if stdenv.isLinux then "linux"
3535 else "unsupported";
3636
···1818let
1919 # the GLES backend on rpi is untested as I don't have the hardware
2020 backend =
2121- if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES";
2121+ if stdenv.hostPlatform.isx86 then "OpenGL" else "GLES";
22222323 withVLC = stdenv.isDarwin;
2424
+1-1
pkgs/misc/screensavers/xscreensaver/default.nix
···3939 ];
40404141 # "marbling" has NEON code that mixes signed and unsigned vector types
4242- NIX_CFLAGS_COMPILE = lib.optional (with stdenv.hostPlatform; isAarch64 || isAarch32) "-flax-vector-conversions";
4242+ NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch "-flax-vector-conversions";
43434444 postInstall = ''
4545 for bin in $out/bin/*; do
+2-2
pkgs/os-specific/linux/nmon/default.nix
···1313 dontUnpack = true;
1414 buildPhase = "${stdenv.cc.targetPrefix}cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D ${
1515 with stdenv.targetPlatform;
1616- if isx86_32 || isx86_64 then "X86"
1717- else if isAarch32 || isAarch64 then "ARM"
1616+ if isx86 then "X86"
1717+ else if isAarch then "ARM"
1818 else if isPower then "POWER"
1919 else "UNKNOWN"
2020 }";
···108108 # aarch64 ghc865Binary gets SEGVs due to haskell#15449 or similar
109109 # the oldest ghc with aarch64-darwin support is 8.10.5
110110 # Musl bindists do not exist for ghc 8.6.5, so we use 8.10.* for them
111111- if stdenv.isAarch64 || stdenv.isAarch32 then
111111+ if stdenv.hostPlatform.isAarch then
112112 packages.ghc8107BinaryMinimal
113113 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
114114 # to my (@a-m-joseph) knowledge there are no newer official binaries for this platform
···127127 bootPkgs =
128128 # aarch64 ghc8107Binary exceeds max output size on hydra
129129 # the oldest ghc with aarch64-darwin support is 8.10.5
130130- if stdenv.isAarch64 || stdenv.isAarch32 then
130130+ if stdenv.hostPlatform.isAarch then
131131 packages.ghc8107BinaryMinimal
132132 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
133133 packages.ghc8107
···141141 ghc923 = callPackage ../development/compilers/ghc/9.2.3.nix {
142142 bootPkgs =
143143 # aarch64 ghc8107Binary exceeds max output size on hydra
144144- if stdenv.isAarch64 || stdenv.isAarch32 then
144144+ if stdenv.hostPlatform.isAarch then
145145 packages.ghc8107BinaryMinimal
146146 else if stdenv.hostPlatform.isPower64 && stdenv.hostPlatform.isLittleEndian then
147147 packages.ghc8107