systemd: disable BPF for ARMv5

ARMv5 does not have hardware floating point, so can't build systemd's
BPF code.
This commit is contained in:
Alyssa Ross 2023-01-30 19:00:28 +00:00
parent aa51704ba5
commit 0da24fa3ba
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -93,6 +93,7 @@
, withHwdb ? true
, withImportd ? !stdenv.hostPlatform.isMusl
, withLibBPF ? lib.versionAtLeast buildPackages.llvmPackages.clang.version "10.0"
&& stdenv.hostPlatform.isAarch -> lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6" # assumes hard floats
&& !stdenv.hostPlatform.isMips64 # see https://github.com/NixOS/nixpkgs/pull/194149#issuecomment-1266642211
, withLocaled ? true
, withLogind ? true