systemd: fix precedence in withLibBPF condition

The Clang version check was being ignored, as long as the CPU version
was greater than 6.  Oops.

Fixes: 0da24fa3ba ("systemd: disable BPF for ARMv5")
This commit is contained in:
Alyssa Ross 2023-04-18 19:46:14 +00:00
parent a0e9b4b276
commit 4caa00594c

View file

@ -98,7 +98,7 @@
, withImportd ? !stdenv.hostPlatform.isMusl
, withKmod ? true
, 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.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
, withLibidn2 ? true
, withLocaled ? true