diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 11492bd163e3..4036c52d6eca 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -120,7 +120,12 @@ withLibBPF ? lib.versionAtLeast buildPackages.llvmPackages.clang.version "10.0" # assumes hard floats - && (stdenv.hostPlatform.isAarch -> lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6") + && ( + stdenv.hostPlatform.isAarch + -> + stdenv.hostPlatform.parsed.cpu ? version + && lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6" + ) # see https://github.com/NixOS/nixpkgs/pull/194149#issuecomment-1266642211 && !stdenv.hostPlatform.isMips64 # can't find gnu/stubs-32.h