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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user